08-01-2010, 05:41 PM
Can you create an integer list called "alreadyAsked" or something like that, and then just add the random number to that list once it is generated, and then the next time you generate a random number just say "if random number is one of the numbers in the list "alreadyAsked", choose a different random number. Else do nothing"? You would have to use that things on the bottom near "Wait" and "While" and "Loop", I think its called "For All Together", and you would assign the "alreadyAsked" list to that?
Check out my best projects so far and please comment:
Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
|