Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java secureRandom certain range

SecureRandom random = new SecureRandom();

    int max=50;
    int min =1;

    System.out.println(random.nextInt(max-min+1)+min);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #secureRandom #range
ADD COMMENT
Topic
Name
2+3 =