objective c - Generate same set of random numbers -


this question has answer here:

i gave small racing game randomnly generates it's course on start up. course long manually make , wondering if there way can generate same randomn numbers every time? don't want course different everytime...

would have save list of randomn numbers in plist?

you can use old c-functions.

set seed rng: srand(314). random number: int randomnumber = rand();.

not tested.. form memory. verify works. :)


Comments

Popular posts from this blog

python 3.x - Mapping specific letters onto a list of words -

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -