vendredi 30 décembre 2016

Generate random numbers that depend on string hash

I'm trying to generate n random numbers that depend on an input string. It would be a function generateNumbers(String input) that generates the same set of numbers for the same input string but entirely different numbers for a slightly different input string.

My question is: Is there an easy way to do this?




Aucun commentaire:

Enregistrer un commentaire