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

hibernate - How to load global settings frequently used in application in Java -

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

objective c - Ownership modifiers with manual reference counting -