Difference between revisions of "RandomDiscrete Command"

From GeoGebra Manual
Jump to: navigation, search
(typo)
(typo)
Line 1: Line 1:
;RandomDiscrete[ <Number of Values>, <Number of Probabilities> ]
+
;RandomDiscrete[ <List of Numbers>, <List of 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.

Revision as of 09:46, 28 August 2015

RandomDiscrete[ <List of Numbers>, <List of 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