dimanche 28 juin 2015

Seeding rand() by itself

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?




Aucun commentaire:

Enregistrer un commentaire