die - luxembourg/muxcode-clm GitHub Wiki

DIE()

FUNCTION: die(<number of times to roll die>, <number of sides on die>)

This function simulates rolling dice. It "rolls" a die with a given number of sides, a certain number of times, and sums the results. For example, DIE(2, 6) would roll "2d6" - two six-sided dice, generating a result in the range 2-12.

Related Topics: lrand, pickrand, rand, shuffle