If I set the seed to 0 in C, I will get this sequence after calling rand()
three times:
38, 7719, 21238, ...,
If I set seed to 1 (srand(1)
) I will get this other sequence:
41, 18467, 6334, ...,
I know that is's very improbable, but will the sequence of srand(1)
be present in the sequence of srand(0)
at some point? I mean, using srand(0)
will I get:
38, 7719, 21238, ..., ..., ..., 41, 18467, 6334, ...,?
Thanks!
Aucun commentaire:
Enregistrer un commentaire