Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java random max and min

Random random = new Random();
int max = 10;
int min = 1;

int result = random.nextInt(max + 1 - min) + min;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #random #max #min
ADD COMMENT
Topic
Name
6+9 =