Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java random between


import java.util.concurrent.ThreadLocalRandom;

// nextInt is normally exclusive of the top value,
// so add 1 to make it inclusive
int randomNum = ThreadLocalRandom.current().nextInt(min, max + 1);

Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #java #random
ADD COMMENT
Topic
Name
2+8 =