Difference between revisions of "RandomBetween Command"

From GeoGebra Manual
Jump to: navigation, search
Line 2: Line 2:
 
{{command|cas=true|probability}}
 
{{command|cas=true|probability}}
 
; RandomBetween[ <Minimum Integer> , <Maximum Integer> ]: Generates a random integer between ''min'' and ''max'' (inclusive).
 
; RandomBetween[ <Minimum Integer> , <Maximum Integer> ]: Generates a random integer between ''min'' and ''max'' (inclusive).
 +
{{example| 1=<div><code><nowiki>RandomBetween[0, 10]</nowiki></code> yields a number between 0 and 10 (inclusive)</div>}}
 +
 
{{Note|1= See also [[SetSeed Command|SetSeed command]], [[RandomElement Command|RandomElement command]],  [[RandomBinomial Command|RandomBinomial command]], [[RandomNormal Command|RandomNormal command]], [[RandomPoisson Command|RandomPoisson command]], [[RandomUniform Command|RandomUniform command]].}}
 
{{Note|1= See also [[SetSeed Command|SetSeed command]], [[RandomElement Command|RandomElement command]],  [[RandomBinomial Command|RandomBinomial command]], [[RandomNormal Command|RandomNormal command]], [[RandomPoisson Command|RandomPoisson command]], [[RandomUniform Command|RandomUniform command]].}}
  

Revision as of 11:35, 16 November 2012


RandomBetween[ <Minimum Integer> , <Maximum Integer> ]
Generates a random integer between min and max (inclusive).
Example:
RandomBetween[0, 10] yields a number between 0 and 10 (inclusive)


© 2024 International GeoGebra Institute