Anvil
Anvil.API.NwRandom Class Reference

Functions for generating random values (numbers, names). More...

Static Public Member Functions

static string RandomName (NameTable name=NameTable.FirstGenericMale)
 Generates a random name using the specified name table. More...
 
static int Roll (this Random random, int sides, int amount=1)
 Returns the result of rolling an amount of n-sided dice. More...
 

Detailed Description

Functions for generating random values (numbers, names).

Member Function Documentation

◆ RandomName()

static string Anvil.API.NwRandom.RandomName ( NameTable  name = NameTable.FirstGenericMale)
inlinestatic

Generates a random name using the specified name table.

◆ Roll()

static int Anvil.API.NwRandom.Roll ( this Random  random,
int  sides,
int  amount = 1 
)
inlinestatic

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

Parameters
randomThe random instance.
sidesThe number of sides on each die.
amountThe amount of dice to roll.

The documentation for this class was generated from the following file: