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
Post a Comment