On Mon, Sep 15, 2014 at 10:01 PM, Jeff C. Britton <jcb@iteris.com> wrote:
Prelude System.Random> take 10 $ (randomRs (1, 6) newStdGen)

I think you need to read http://www.vex.net/~trebla/haskell/IO.xhtml. You're trying to operate directly on an IO "program" (newStdGen) as if it were a value.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net