View Single Post
how do i make a random number not appear twice
Old
nickster654
Senior Member
 
Status: Offline
Posts: 180
Join Date: Feb 2011
Location: nickster12345678@gmail.com
Default how do i make a random number not appear twice - 08-16-2011, 08:07 PM

i have a method where a variable makes a random number between 1 and 22 (i used the random fuction) and every time someone answers a question correct a random number is made (the numbers are connected to questions so that when a random number is chosen a random question is chosen) but sometimes (rarely) the random number will be the same as the number before, how to i make it so that a random number wont repeat?
   
Reply With Quote