n <- getNormal mean dev.
The most promising seemed to be the cabal package
random-fu
- although it looks like it has a lot of stuff in it and really all I want is the above single monadic action.Cue the usual BS about installing packages (not haskell specific, just damned packaging in general) - today I need to edit my local hackage repository to remove some malformed packages, and upgrade GHC. frr. 6 hours just getting
cabal install random-fu
to work.But once that was all done, the next morning, I got what I wanted - a short
IO Double
action: sampleFrom DevURandom (normal mean dev)
Hurrah.
No comments:
Post a Comment