FiniteCategories-0.1.0.0: Finite categories and usual categorical constructions on them.
CopyrightGuillaume Sabbagh 2021
LicenseGPL-3
Maintainerguillaumesabbagh@protonmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Utils.Sample

Description

Sample randomly a list.

Synopsis

Documentation

pickOne :: RandomGen g => [a] -> g -> (a, g) Source #

Pick one element of a list randomly.

sample :: RandomGen g => [a] -> Int -> g -> ([a], g) Source #

Sample n elements of a list randomly.