![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Feb 2008
Posts: 10
Rep Power: 0
![]() |
Patterned returns with Math.random()
I hope I am doing this correct. I am having trouble with a little program I made. It generates lottery numbers in an unconventional way. It is random numbers but the main five numbers repeat exactly every eleventh line. What I mean is, if you give it a command line argument greater than 11 you will see the supposedly randomly generated lines begin to repeat themselves. It is completely bizarre. I suppose that if you want to comment on how bad my coding is you are free to do that as well. It will only help me code better in the future. Please, if anyone can help, it is like a splinter in my mind.
src.zip |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with assignment code returns no answer | backstabber | C++ | 9 | Dec 21st, 2006 7:46 AM |
| Futurama Returns!!! | Indigno | Coder's Corner Lounge | 27 | Jul 22nd, 2006 2:48 PM |
| Stash returns... Malloc problem? | Soulstorm | C++ | 18 | May 27th, 2006 2:09 AM |
| Function that returns occurances of substring in string. | conbrio | C | 7 | Jul 1st, 2005 6:51 PM |
| Count lenght of list inside list, how to print returns | dezza | Python | 5 | Apr 5th, 2005 12:16 PM |