Joseph Rushton Wakeling:

However, I don't see any reason why one couldn't have a strongly pure function that purely transforms state, which could be wrapped by an RNG class


So can you can generate random values in strongly pure functions with this? You can allocate the RNG class inside the function... If that's right, then is this simple strongly pure random generator worth adding to std.random2?

Bye,
bearophile

Reply via email to