[Haskell-cafe] random-fu confusion
rpglover64 at gmail.com
Thu Sep 2 10:01:32 EDT 2010
I seem to be having confusion at the runRVar level of random-fu.
I can't figure out how to use the Data.Random.Source.PureMT module to get a
meaningful random source (I can't get my code to type-check).
I wrote a [trivial] flipCoin function
> flipCoin = uniform False True
and am trying to fill in the final place of runRVar
> :t runRVar (replicateM 20 flipCoin)
runRVar (replicateM 20 flipCoin)
:: (RandomSource m s) => s -> m [Bool]
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe