Mark Carroll mark@chaos.x-philes.com
Tue, 17 Dec 2002 09:06:58 -0500 (EST)

On 17 Dec 2002, Ketil Z. Malde wrote:
>         dice :: Integer -> StdGen -> [Integer]
>         dice n g = take n $ randomRs (1,6) g

Can we still do this concisely and get the new state of the rng back out
the other end after the die has been thrown a few times? Or are things
like newStdGen meant to be so cheap that it's fine to use lots of
different RNGs instead of one that you thread through everything?

-- Mark