vendredi 31 mars 2017

Java Random - set seed to get expected results

Is there a way, to calculate a seed for a java.util.Random instance, to force a specific (start-) behaviour?

For example: I want to calculate one or more (maybe 'all' ?) seeds, so that the first three numbers it generates are x, y, z. Is there a reasonable way to do this?




Aucun commentaire:

Enregistrer un commentaire