View Single Post
Old Mar 1st, 2008, 3:33 PM   #9
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,035
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
Re: Patterned returns with Math.random()

The answer is within your reach. Do some searching on the terms given in this thread. Particularly, seeding the random generator. It sounds like you keep seeding the random number generator with bad values, or the same values. Compare your code against that of what you can find through several different sources (IE Google).
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges!
Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download.
Sane is offline   Reply With Quote