Difference between revisions of "RandomBetween Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{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).

Revision as of 22:23, 9 March 2013



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