Data.Vector.Shuffle
Contents
shuffle :: [a] -> IO [a] Source #
Shuffles a list of elements.
>>> shuffle (outputs coinSel) [...]
>>>
shuffle (outputs coinSel)
mkSeed :: Text -> Int Source #
Generate a random generator seed from a text string
shuffleWith :: RandomGen g => g -> [a] -> IO [a] Source #
Like shuffle , but from a given seed. shuffle will use a randomly generate seed using newStdGen from System.Random .
shuffle
newStdGen
System.Random
Properties:
shuffleWith g es == shuffleWith g es
∃Δ> 1. g ≠g', length es > Δ⇒ shuffleWith g es ≠shuffleWith g' es