| Functions Documentation |
|
| Name |
rollDice |
| Syntax |
(rollDice die sides [bonus]) -> integer |
| Argument List |
die: The amount of dice you want to roll
sides: The amount of sides the dice have
[bonus]: A bonus that is applied at the end (can be negative) |
| Returns |
integer: A number made from "rolling" that many dice and adding them together then applying the bonus. |
| Category |
random
|
| Description |
Returns a number made from "rolling" that many dice and adding them together then applying the bonus. |
| Example |
(rollDice 1 6 10)
Returns a number between 11 and 16. |
| Comment |
Very useful function for making variation in code. |