vivid-0.5.1.0: Sound synthesis with SuperCollider
Safe HaskellSafe-Inferred
LanguageHaskell2010

Vivid.Randomness

Synopsis

Documentation

pick :: MonadRandom m => [a] -> m a Source #

Picks a random element from the provided list

picks :: MonadRandom m => [a] -> m [a] Source #

Returns an infinite list of randomly-chosen elements from the provided list

e.g.

> > take 5 <$> picks [1,2,3,4]
> [2,3,1,1,3]

exprand :: (Fractional n, Floating n, MonadRandom m, Random n) => n -> n -> m n Source #