If a program generates a few numbers using rand(), stores the last rand() result, and on repeated runs use srand(stored_seed), would this provide some shorter, but still usable random number sequence?
rand()
srand(stored_seed)
Aucun commentaire:
Enregistrer un commentaire