Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java random word from list

private static String[] names = { "Terminator", "Slicer","Ninja", "cow", "Robot", "littlegirl" };
name = names[(int) (Math.random() * names.length)];
System.out.println(name);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #random #word #list
ADD COMMENT
Topic
Name
6+5 =