/ Published in: Java
URL: http://www.landofcode.com/java/java-random-numbers.php
This was an example provided for us to generate a number between 1 and n. The URL included was the best explaination I could find. Substitute any number in place of the 1 for a different starting number. Take the starting number from your highest number, and plug that into n for a different range.
Expand |
Embed | Plain Text
public static int generateRandomNumber(int n){ }
You need to login to post a comment.
