samedi 6 février 2016

generate same random permutation on every computer

I am using random_shuffle on sequence a 1000 times. I want to ensure that on every computer the final sequence is same. This might look undesirable, but still I want to achieve this. Does srand(x) ensure that ?




Aucun commentaire:

Enregistrer un commentaire