alea/src/Alea/Random.hs
2015-04-11 20:02:27 +02:00

7 lines
153 B
Haskell

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