Loading

RANDPDF


math statistics
Since v1.0.7
Available on all platforms
See also

Pushes on the stack a function which emits values according to a provided value histogram.

The result if a function pushed onto the stack. This function does not have any arguments.

To use the function pushed by RANDPDF onto the stack, use EVAL.

Signature

Examples

{ 0 2 1 1 2 1 } RANDPDF 'p' STORE $p EVAL $p EVAL $p EVAL $p EVAL