Safe Haskell | None |
---|---|
Language | Haskell2010 |
Random choice between two alternatives of inequal probability.
- randomChoice :: (Fractional r, Ord r, Distribution Uniform r) => r -> RVar b -> RVar b -> RVar b
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).