hgeometry-0.7.0.0: Geometric Algorithms, Data structures, and Data types.

Safe HaskellNone
LanguageHaskell2010

System.Random.Shuffle

Synopsis

Documentation

shuffle :: (Foldable f, RandomGen g) => g -> f a -> [a] Source #

Fisher–Yates shuffle, which shuffles in O(n) time.