Generate a random number inside of a set using the range operator `..`
This will generate a number between the two numbers you've provided inclusively.
This will work for negative number and decimals.
Random decimals will use the highest number of decimal places you provide.
Example:
`5..10` => `7`
`1..1.4` => `1.2`
`0.0026..0.03` => `0.0115`
`-5..5` => `-3`
In the examples below, `#` is replaced by any number.
Notation is not case sensitive.
Multiple dice can be rolled at once, and additional arithmetic can be applied.
`d` | used to simulate the roll of virtual dice. |
`#d` | Roll the dice "n" times. (Default 1) |
`d#` | Roll a dice with "n" sides. (Default 6) |
`d%` | Roll a dice with 100 sides. (Shortcut for `d100`) |
`d!` | Roll an additional time if the highest value is rolled (6 for a 6 sided die) |
`d!#` | Roll an additional time if "n" is rolled (Default 1) |
`d+!#` | Roll an additional time if the roll is equal or greater than "n" |
`d-!#` | Roll an additional time if the roll is equal or less than "n" |
`dL` | Drop the lowest result. (Used when rolling one die multiple times) |
`dL#` | Drop the lowest result "n" times. |
`dH` | Drop the highest result. (Used when rolling one die multiple times) |
`dH#` | Drop the highest result "n" times. |
`dK` | Drop the highest result. (Used when rolling one die multiple times) |
`dK#` | Drop the highest result "n" times. |
`d-L` | Drop all results equal to the lowest dice value (1) |
`d-L#` | Drop all results equal to or less than "n" |
`d-H` | Drop all results equal to the highest dice value (6 for a 6 sided die) |
`d-H#` | Drop all results equal to or greater than "n" |
Example:
`4d6 + 10` => Roll a 6 sided dice 4 times, add them all together and add 10 to the final result.