Computer Science Canada Excluding numbers |
Author: | Flikerator [ Thu Apr 28, 2005 8:37 pm ] | ||
Post subject: | Excluding numbers | ||
the second for statement. I need it so if the first number entered can't happen again. Anyone know how to do that? Ill work on the rest but I need this for the program to work.
|
Author: | c0bra54 [ Thu Apr 28, 2005 8:57 pm ] |
Post subject: | |
umm.. jut a question but, what exactly are you working on... is it like a lotto 6 49 generator or sumthing ??? |
Author: | Flikerator [ Thu Apr 28, 2005 9:11 pm ] | ||
Post subject: | |||
c0bra54 wrote: umm.. jut a question but, what exactly are you working on... is it like a lotto 6 49 generator or sumthing ???
Yah. The 1..49 is to gather all the numbers and make a census of how many times each number was pressed. Practice for my tournament next month. Heres the question I just did for practise ![]()
Main purpose of posting this is to view it at school, but feel free to test it out ![]() |
Author: | Cervantes [ Fri Apr 29, 2005 9:07 am ] |
Post subject: | |
Perhaps you could store all the already picked values in a flexible array and then each time you pick a new random number, make sure that it is not equal to any values in the flexible array. |
Author: | c0bra54 [ Fri Apr 29, 2005 10:50 pm ] |
Post subject: | |
omg lol that calendor thing, we had to eb for a project ![]() |