d12(int)

Rolls a 12-sided die.

int d12(
    int nNumDice = 1
);

Parameters

nNumDice

The number of dice to roll. (Default: 1)


Description

Returns the total from rolling nNumDice x d12 dice.
If nNumDice is less than 1, then 1 is used.



Remarks

A d12 (twelve sided die) has a 8.3% probability of turning up any one number.


Version

1.22

See Also

functions: d10 | d100 | d2 | d20 | d3 | d4 | d6 | d8 | Random
categories: Miscellaneous Functions


 author: Charles Feduke