Difference between revisions of "RandomDiscrete Command"

From GeoGebra Manual
Jump to: navigation, search
(<List of (Relative) Probabilities>)
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
;RandomDiscrete[ <List of Numbers>, <List of (Relative) 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