Difference between revisions of "RandomBetween Command"
From GeoGebra Manual
Kimeswenger (talk | contribs) |
Kimeswenger (talk | contribs) |
||
Line 11: | Line 11: | ||
{{note|Press <F9> to see the difference between those two syntaxes.}} | {{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| 1=<div><code><nowiki>RandomBetween[0, 10]</nowiki></code> yields a number between 0 and 10 (inclusive)</div>}} | ||
+ | |||
+ | {{Note|1= See also [[RandomElement Command|RandomElement command]], [[RandomBinomial Command|RandomBinomial command]], [[RandomNormal Command|RandomNormal command]], [[RandomPoisson Command|RandomPoisson command]].}} |
Revision as of 11:26, 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)
Note: See also SetSeed command, RandomElement command, RandomBinomial command, RandomNormal command, RandomPoisson command, RandomUniform command.
Following text is about a feature that is supported only in GeoGebra 4.2.
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)
Note: See also RandomElement command, RandomBinomial command, RandomNormal command, RandomPoisson command.