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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -