The reason you got 46 twice there isn't because the random number happends to be the same, its because you are printing the same variable twice without modifying it. If you want to make it so each number can only come up once, you have to make an array for the numbers to go into it and then check it to see if it has already been added.
Reputation Points: 1429
Solved Threads: 129
Posting Virtuoso
Offline 1,542 posts
since Mar 2008