Method Roll
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
randomRandomThe random instance.
sidesintThe number of sides on each die.
amountintThe amount of dice to roll.