Advertisement
jmilne22

Untitled

Nov 26th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1.         Random Dice = new Random(); // build a dice to pick a random position in the array
  2.         int n = Dice.nextInt(10);
  3.         String random = (words[n]);
  4.         return random; // return the word back to the main method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement