vendredi 24 avril 2015

How to use string as seed value for srand?

I'd like to use a string as the seed value for a srand call. Is there any way to do this or maybe to convert the string into an int for srand?

srand('random');
@array = shuffle(@array);
srand('different_random');
@array = shuffle(@array);




Aucun commentaire:

Enregistrer un commentaire