[RESOLVED] Random numbers being TOO random
I am currently writing a sudoku game and I am trying to get it so that I can input a number to seed the random number generator...from what I remembered, if you use "randomize x" the numbers returned from rnd() will always be the same for the same number x (so if you made x = 1 then the rnd() would always return, for instance, 100-49-120-105-12-etc every single time you randomized with the number 1)...am I missing something though?
I basically want to be able to seed the generator then *reset* the random sequence so I get the same sequence of numbers as last time I seeded with the same numbers...and I can't seem to remember how to do it :-)
Re: Random numbers being TOO random
Think I have worked it out...found an old post by BushMobile which describes how to sort it...I need to use a negative number in the rnd(x) (make x negative) to restart the seed :-)
And it seems the negative number used is what affects the seed, which is weird...I'm sure it was done differently before