Bugfix
This crashed the program if you were very unlucky.
This commit is contained in:
parent
2abb1c9074
commit
8e383dde3f
@ -15,4 +15,4 @@ randPick ys n gen = (x : xs', gen'')
|
||||
|
||||
-- Generate k random number in the range [0, n)
|
||||
randWords :: Int -> Int -> IO [Int]
|
||||
randWords n k = getStdRandom (randPick [0..n] k)
|
||||
randWords n k = getStdRandom (randPick [0..n-1] k)
|
||||
|
Loading…
Reference in New Issue
Block a user