RandomBetween Command
From GeoGebra Manual
- 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.
- 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)
Note: See also RandomElement command, RandomBinomial command, RandomNormal command, RandomPoisson command.