Refactor randWords function
This commit is contained in:
parent
ce62dd418c
commit
3d375fae96
@ -3,4 +3,4 @@ module Alea.Random where
|
||||
import Crypto.Threefish.Random
|
||||
|
||||
randWords :: Int -> Int -> IO [Int]
|
||||
randWords n k = newSkeinGen >>= \x -> return . take k $ randomRs (0, n) x
|
||||
randWords n k = newSkeinGen >>= return . take k . randomRs (0, n-1)
|
||||
|
Loading…
Reference in New Issue
Block a user