syntax:functions:randbetween
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | syntax:functions:randbetween [2021/10/15 15:01] (current) – created craigt | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== RandBetween(min_num, | ||
| + | Category: | ||
| + | |||
| + | \\ | ||
| + | =====Description===== | ||
| + | This function generates a random whole number between the values //min_num// and // | ||
| + | |||
| + | \\ | ||
| + | =====Arguments===== | ||
| + | ^Argument^Type^Description^ | ||
| + | |min_num|Number|The minimum value of the returned number. | ||
| + | |max_num|Number|The maximum value of the returned number. | ||
| + | \\ | ||
| + | **Return value type: | ||
| + | |||
| + | \\ | ||
| + | =====Remarks===== | ||
| + | The //min_num// and //max_num// values are inclusive and can be the returned value. | ||
| + | |||
| + | The //min_num// value must be less than or equal to the //max_num// value, or an error is returned. | ||
| + | |||
| + | // | ||
| + | |||
| + | |||
| + | \\ | ||
| + | =====Examples===== | ||
| + | randbetween(1, | ||
| + | |||
| + | randbetween(6, | ||
| + | |||
| + | randbetween(1.1, | ||
| + | |||
| + | \\ | ||
| + | =====See also===== | ||
| + | * [[syntax: | ||
| + | |||
syntax/functions/randbetween.txt · Last modified: by craigt