<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>As the maintainer of random-fu, I'd be interested to know whether you find it useful after further inspection. It does, in fact, support using /dev/random as its entropy source. I don't know what exact sort of things you're wanting to do, but very basic usage (random Int in IO from DevRandom, etc.) is along these lines:</div><div><br></div><div>> sampleFrom DevRandom (uniform 1 100) :: IO Int</div><div>> sampleFrom DevRandom stdNormal :: IO Double</div><div><br></div><div>If the haddock docs are insufficient, feel free to drop me an email for clarification - I know they're a bit spotty at the moment.</div><div><br></div><div>Minor warning: I'm getting ready to release a fairly major overhaul of the library's innards (the latest is in the darcs repo). The public interface will probably not change much, but if you happen to end up using any of the low-level interfaces (such as to define your own new random source) just be aware that those are changing soon. It's nearing release, I'm mostly just trying to knock off rough edges and trying to decide whether to "take the plunge" and make some interface changes (mostly whether I want to hide some data constructors in order to better enforce some invariants).</div><div><br></div><div>-- James Cook</div><br><div><div>On Apr 3, 2010, at 1940, Alex Rozenshteyn wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Looking over the random-fu package, I think it might have what I'm looking for (and a lot that I'm not).<br><br><div class="gmail_quote">On Sat, Apr 3, 2010 at 6:27 PM, Gökhan San <span dir="ltr"><<a href="mailto:gsan@stillpsycho.net">gsan@stillpsycho.net</a>></span> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Alex Rozenshteyn <<a href="mailto:rpglover64@gmail.com">rpglover64@gmail.com</a>> writes:<br> <br> > The Rand monad you linked seems to be a step in the right direction<br> > for what I want, but it uses getStdGen, which appears to end up using<br> > cpu time to seed the generator.<br> <br> </div>There's the random-stream package but looks like it's subject to code<br> rot. Its RandomGen instance lacks the split functionality but I guess it<br> could be used with MonadRandom.<br> <br> --<br> <font color="#888888"><br> Gökhan San<br> </font><div><div></div><div class="h5">_______________________________________________<br> Haskell-Cafe mailing list<br> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br> </div></div></blockquote></div><br><br clear="all"><br>-- <br> Alex R<br> _______________________________________________<br>Haskell-Cafe mailing list<br><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>http://www.haskell.org/mailman/listinfo/haskell-cafe<br></blockquote></div><br></body></html>