Difference between revisions of "RandomUniform Command"

From GeoGebra Manual
Jump to: navigation, search
(Autogenerated from properties)
(command syntax: changed [ ] into ( ))
 
(21 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|probability}}
 +
;RandomUniform( <Min>, <Max> )
 +
:Returns random real number from [[w:Uniform distribution (continuous)|uniform distribution]] on interval [''min'', ''max''].
 +
:{{Example|1=<code><nowiki>RandomUniform(0, 1)</nowiki></code> returns a random number between ''0'' and ''1''}}
 +
;RandomUniform( <Min>, <Max>, <Number of Samples n> )
 +
:Returns a list of ''n'' random real numbers from [[w:Uniform distribution (continuous)|uniform distribution]] on interval [''min'', ''max''].
 +
:{{Example|1=<code><nowiki>RandomUniform(0, 1, 3)</nowiki></code> returns a list of three random numbers between ''0'' and ''1''}}
  
test
+
{{Notes|1=
uu<noinclude>{{Manual Page|version=4.0}}<noinclude/>
+
:*<code>RandomUniform(0,1)</code> is equivalent to <code>random()</code> (see [[Predefined Functions and Operators]]).
{{command|probability}}
+
:*See also [[SetSeed Command|SetSeed]], [[RandomBetween Command|RandomBetween]], [[RandomElement Command|RandomElement]],  [[RandomBinomial Command|RandomBinomial]], [[RandomNormal Command|RandomNormal ]], [[RandomPoisson Command|RandomPoisson ]] commands.}}
;RandomUniform[ <Mean>, <Standard Deviation> ]
 
:{{description}}
 

Latest revision as of 11:24, 11 October 2017


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:
© 2024 International GeoGebra Institute