Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java random 5 digit int

int min = 9999;
int max = 1000;

//Generate random int value from 10000 to 99999
//System.out.println("Random value in int from "+min+" to "+max+ ":");
int random_int = (int)(Math.random() * (max - min + 1) + min);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #random #digit #int
ADD COMMENT
Topic
Name
7+6 =