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/08/11 15:30] – [Generating random numbers within a given range] craigt | syntax:functions:random [2021/10/15 14:56] (current) – Add See also section. craigt | ||
---|---|---|---|
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