I would like to initialize a pseudo-random generator with a string. Say, I wish I could write something like random.seed('Lorem ipsum')
.
I need a function that transforms a string (any alphanumeric string) in an integer. Is there a standard way to do it?
Aucun commentaire:
Enregistrer un commentaire