Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Module for randomizing the order of elements in a list. Used to generate randomized lists for table-based random generation
Synopsis
- randomizeList :: [Int] -> [Int]
- randomizeWithCustomBools :: [Int] -> [Bool] -> [Int]
Documentation
randomizeList :: [Int] -> [Int] Source #
Randomizes the order of a list of integers using the default balanced table of RealDice randomized booleans
Examples
>>>
randomizeList [1, 2, 3, 4, 5]
[5,3,1,2,4]