Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Random {
- public static int randomInt(int min, int max){
- return (min + (int)(Math.random() * (max-min-1)));
- }
- public static double randomDouble(double min,double max){
- return (min + (Math.random() * (max-min-1)));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement