Difference between revisions of "RandomUniform Command"
From GeoGebra Manual
Line 4: | Line 4: | ||
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]. | ||
{{Examples|1=<div><code><nowiki>RandomUniform[0, 1]</nowiki></code> yields a number between </div>}} | {{Examples|1=<div><code><nowiki>RandomUniform[0, 1]</nowiki></code> yields a number between </div>}} | ||
− | |||
{{Note|1=<code>RandomUniform[0,1]</code> is equivalent to <code>random()</code> (see [[Predefined Functions and Operators]]).}} | {{Note|1=<code>RandomUniform[0,1]</code> is equivalent to <code>random()</code> (see [[Predefined Functions and Operators]]).}} | ||
{{Note|1= See also [[SetSeed Command|SetSeed command]], [[RandomBetween Command|RandomBetween command]], [[RandomElement Command|RandomElement command]], [[RandomBinomial Command|RandomBinomial command]], [[RandomNormal Command|RandomNormal command]], [[RandomPoisson Command|RandomPoisson command]].}} | {{Note|1= See also [[SetSeed Command|SetSeed command]], [[RandomBetween Command|RandomBetween command]], [[RandomElement Command|RandomElement command]], [[RandomBinomial Command|RandomBinomial command]], [[RandomNormal Command|RandomNormal command]], [[RandomPoisson Command|RandomPoisson command]].}} |
Revision as of 08:58, 23 November 2012
- RandomUniform[ <Min>, <Max> ]
Returns random real number from uniform distribution on interval [min,max].
Examples:
RandomUniform[0, 1]
yields a number between Note:
RandomUniform[0,1]
is equivalent to random()
(see Predefined Functions and Operators).