Table of Contents

Method Roll

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

Roll(Random, int, int)

Returns the result of rolling an amount of n-sided dice.

public static int Roll(this Random random, int sides, int amount = 1)

Parameters

random Random

The random instance.

sides int

The number of sides on each die.

amount int

The amount of dice to roll.

Returns

int