hap.random: a new random number library for D

bearophile via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Jun 10 04:32:53 PDT 2014


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


More information about the Digitalmars-d-announce mailing list