Macaulay2 » Documentation
Packages » Probability » ProbabilityDistribution » RandomGeneration
next | previous | forward | backward | up | index | toc

# RandomGeneration -- random generation function

## Description

A key in ProbabilityDistribution objects and an option for discreteProbabilityDistribution and continuousProbabilityDistribution for setting the random generation function to be used by random(ProbabilityDistribution).

### Menu

- random(ProbabilityDistribution) -- randomly generate samples from probability distribution

## Functions with optional argument named RandomGeneration:

- `continuousProbabilityDistribution(...,RandomGeneration=>...)` -- see continuousProbabilityDistribution -- construct a continuous probability distribution
- `discreteProbabilityDistribution(...,RandomGeneration=>...)` -- see discreteProbabilityDistribution -- construct a discrete probability distribution

## For the programmer

The object RandomGeneration is a symbol.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Probability.m2:597:0.