I need PRNG that will be not only repeatable, but also will be able to traverse it's internal states in two directions.
E.g
r = prng_from_seed(seed)
r.next # => 0.12332132412
r.next # => 0.57842057177
r.next # => 0.74782915912
r.prev # => 0.57842057177
r.next # => 0.74782915912
What relatively strong PRNG algorithms have this feature?
Aucun commentaire:
Enregistrer un commentaire