User Tools

Site Tools


harlowe:random

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

harlowe:random [2017/10/09 20:39] (current)
Line 1: Line 1:
 +**(random: // [[harlowe:​Number|Number]],​ [ Number ]//) -> //​Number//​**
  
 +This macro produces a whole [[harlowe:​number|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:​either|(either:​)]],​ [[harlowe:​shuffled|(shuffled:​)]]
harlowe/random.txt ยท Last modified: 2017/10/09 20:39 (external edit)