title: How to generate a list of random Num elements without IO in Haskell
body: <p>I need to generate list of random elements without IO monad, is there a way to do it?
  I managed to do myself a random list generating function only with IO, here it is:</p>
  <pre><code>genRandList :: Random a =&gt; a -&gt; a -&gt; Int -&gt; IO [a]
  genRandList a b n = take n . randomRs (a, b) &lt;$&gt; newStdGen
  </code></pre>