Dice.D20

Static Method in Dice

Declaration

public static int D20()

Description

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

Returns

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

Overload

Declaration

public static int D20(int n)

Description

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

Parameters

nThe number of times to roll the dice.

Returns

intThe sum of the rolls.