
9 Jan
2011
9 Jan
'11
12:34 p.m.
On 09/01/2011 18:16, Brent Yorgey wrote:
With your definition, theStdGen is a computation that gives you a *new*, *different* IORef (containing yet another generator initialized with a seed of zero) every time you call it. The original definition with unsafePerformIO generates a single, global IORef which is accessed by every subsequent call to getStdGen.
How does it do this?