RandomDiscrete Command

From GeoGebra Manual
Revision as of 17:17, 7 October 2017 by Zbynek (talk | contribs) (Text replace - ";(.*)\[(.*)\]" to ";$1($2)")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


RandomDiscrete( <List of Numbers>, <List of (Relative) Probabilities> )

Produces random number from the first list according to probability distribution in the second one. The sum of the second list does not have to be 1, the probabilities are normalized.

© 2024 International GeoGebra Institute