Difference between revisions of "RandomDiscrete Command"

From GeoGebra Manual
Jump to: navigation, search
(typo)
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
;RandomDiscrete[ <Number of Values>, <Number of Probabilities> ]
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|list}}
 +
;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.
 
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.

Latest revision as of 17:17, 7 October 2017


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