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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -