wordpass-1.0.0.7: Dictionary-based password generator

Safe HaskellNone
LanguageHaskell2010

Data.Random.Choice

Description

Random choice between two alternatives of inequal probability.

Synopsis

Documentation

randomChoice :: (Fractional r, Ord r, Distribution Uniform r) => r -> RVar b -> RVar b -> RVar b Source #

Performs random choice between two RVar values. Input is a _ratio_ of the _relative_ probabilities between first and second option (A/B).