c++ - Same and Different Random Numbers generation -


i creating game involves generating random numbers. have add option (at end of game) restart same game or create new game. how can generate same , different random numbers?

save seed use in srand() generate identical random numbers, initialize seed based on time() generate new sequences every time.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -