Difference between revisions of "RandomBetween Command"

From GeoGebra Manual
Jump to: navigation, search
Line 6: Line 6:
 
{{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]].}}
  
{{betamanual|version=4.2|
+
;RandomBetween[ <Minimum Integer> , <Maximum Integer> , <Boolean Fixed> ]
1=; RandomBetween[ <Minimum Integer> , <Maximum Integer> , <Boolean Fixed> ]
 
 
: If <Boolean Fixed> = "true", it generates a random integer between ''min'' and ''max'' (inclusive), which is updated just once (when file is loaded and also on undo/redo).
 
: If <Boolean Fixed> = "true", it generates a random integer between ''min'' and ''max'' (inclusive), which is updated just once (when file is loaded and also on undo/redo).
 
{{note|Press <F9> to see the difference between those two syntaxes.}}
 
{{note|Press <F9> to see the difference between those two syntaxes.}}
}}
 
  
 
==CAS Syntax==
 
==CAS Syntax==

Revision as of 01:01, 3 December 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)


RandomBetween[ <Minimum Integer> , <Maximum Integer> , <Boolean Fixed> ]
If <Boolean Fixed> = "true", it generates a random integer between min and max (inclusive), which is updated just once (when file is loaded and also on undo/redo).
Note: Press <F9> to see the difference between those two syntaxes.

CAS Syntax

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