alea/Alea/Random.hs
2014-10-20 17:32:36 +02:00

7 lines
162 B
Haskell

module Alea.Random where
import Crypto.Threefish.Random
randWords :: Int -> Int -> IO [Int]
randWords n k = newSkeinGen >>= return . take k . randomRs (0, n-1)