hgeometry-0.6.0.0: Geometric Algorithms, Data structures, and Data types.
System.Random.Shuffle
Synopsis
shuffle :: (Foldable f, RandomGen g) => g -> f a -> [a] Source #
Fisher–Yates shuffle, which shuffles in O(n) time.