Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get raondom from array java

public static int getRandom(int[] array) {
    int rnd = new Random().nextInt(array.length);
    return array[rnd];
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #raondom #array #java
ADD COMMENT
Topic
Name
8+6 =