# Twine Wiki

### Special passage tags

harlowe:random

This is an old revision of the document!

(random: Number, [ Number ]) → Number

This macro produces a whole number randomly selected between the two whole numbers, inclusive (or, if the second number is absent, then between 0 and the first number, inclusive).

#### Example usage:

`(random: 1,6)` simulates a six-sided die roll.

#### See also:

harlowe/random.1497851109.txt.gz · Last modified: 2017/10/09 20:37 (external edit)