Difference between revisions of "RandomUniform Command"
From GeoGebra Manual
m (removed extra CAS syntax) |
m (nicer notes formatting) |
||
Line 7: | Line 7: | ||
:{{Example|1=<div><code><nowiki>RandomUniform[0, 1, 3]</nowiki></code> returns a list of three random numbers between ''0'' and ''1''</div>}} | :{{Example|1=<div><code><nowiki>RandomUniform[0, 1, 3]</nowiki></code> returns a list of three random numbers between ''0'' and ''1''</div>}} | ||
− | {{ | + | {{Notes|1= |
− | + | :*<code>RandomUniform[0,1]</code> is equivalent to <code>random()</code> (see [[Predefined Functions and Operators]]). | |
− | + | :*See also [[SetSeed Command|SetSeed]], [[RandomBetween Command|RandomBetween]], [[RandomElement Command|RandomElement]], [[RandomBinomial Command|RandomBinomial]], [[RandomNormal Command|RandomNormal ]], [[RandomPoisson Command|RandomPoisson ]] commands.}} |
Revision as of 08:44, 11 September 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
Notes:
RandomUniform[0,1]
is equivalent torandom()
(see Predefined Functions and Operators).- See also SetSeed, RandomBetween, RandomElement, RandomBinomial, RandomNormal , RandomPoisson commands.