syntax:functions:random
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
syntax:functions:random [2021/07/31 22:45] – craigt | syntax:functions:random [2021/10/15 14:56] (current) – Add See also section. craigt | ||
---|---|---|---|
Line 22: | Line 22: | ||
( random() * (10-1) ) +1 | ( random() * (10-1) ) +1 | ||
- | | + | or |
( random() * 9 ) +1 | ( random() * 9 ) +1 | ||
Line 38: | Line 38: | ||
=====Examples===== | =====Examples===== | ||
Extra spaces added for clarity. | Extra spaces added for clarity. | ||
- | random() | + | random() |
( random() * 10 ) +2 // | ( random() * 10 ) +2 // | ||
- | roundxl( ( random() * 20 ) +20 , 0 ) //Random number between 20 and 40, rounded to integer. | ||
+ | roundxl( ( random() * 20 ) +20 , 0 ) //Random number between 20 and 40, rounded to an integer. | ||
+ | \\ | ||
+ | =====See also===== | ||
+ | * [[syntax: |
syntax/functions/random.txt · Last modified: 2021/10/15 14:56 by craigt