Dice.D12

Static Method in Dice

Declaration

public static int D12()

Description

Rolls a 12-sided dice [1..12].

Returns

intA random number on a 12-sided dice [1..12].

Overload

Declaration

public static int D12(int n)

Description

Rolls a 12-sided dice [1..12] n times.

Parameters

nThe number of times to roll the dice.

Returns

intThe sum of the rolls.