Difference between revisions of "RandomUniform Command"
From GeoGebra Manual
m |
m |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version=5.0}}</noinclude> | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|probability}} |
− | {{command|probability}} | ||
;RandomUniform[ <Min>, <Max> ] | ;RandomUniform[ <Min>, <Max> ] | ||
:Returns random real number from [[w:Uniform distribution (continuous)|uniform distribution]] on interval [''min'', ''max'']. | :Returns random real number from [[w:Uniform distribution (continuous)|uniform distribution]] on interval [''min'', ''max'']. |
Revision as of 14:27, 10 August 2015
- RandomUniform[ <Min>, <Max> ]
- Returns random real number from uniform distribution on interval [min, max].
- Example:
RandomUniform[0, 1]
returns a random number between 0 and 1
- RandomUniform[ <Min>, <Max>, <Number of Samples n> ]
- Returns a list of n random real numbers from uniform distribution on interval [min, max].
- Example:
RandomUniform[0, 1, 3]
returns a list of three random numbers between 0 and 1
CAS Syntax
- RandomUniform[ <Min>, <Max> ]
- Returns random real number from uniform distribution on interval [min, max].
- Example:
RandomUniform[0, 1]
returns a random number between 0 and 1
Note:
RandomUniform[0,1]
is equivalent to random()
(see Predefined Functions and Operators). Note: See also SetSeed, RandomBetween, RandomElement, RandomBinomial, RandomNormal , RandomPoisson commands.