I am looking for a way to serialize/deserialize the state of the
std.random.Random number generator, ideally using orange
(https://github.com/jacob-carlborg/orange) or another
serialization library. From looking at the module source code, I
understand how to seed a random number generator with the state
of another, but I do find a way to access the RNG's state, since
it is hidden away in a private attribute. What is the recommended
solution for this? Thanks in advance!
- saving std.random RNG state harfel via Digitalmars-d-learn
- Re: saving std.random RN... Neia Neutuladh via Digitalmars-d-learn
- Re: saving std.rando... Steven Schveighoffer via Digitalmars-d-learn