View Single Post
Old Feb 29th, 2008, 11:25 PM   #1
dimlyBright
Newbie
 
dimlyBright's Avatar
 
Join Date: Feb 2008
Posts: 10
Rep Power: 0 dimlyBright is on a distinguished road
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
dimlyBright is offline   Reply With Quote