Functions for generating random values (numbers, names).
More...
|
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...
|
|
Functions for generating random values (numbers, names).
◆ 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
-
random | The random instance. |
sides | The number of sides on each die. |
amount | The amount of dice to roll. |
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/API/NwRandom.cs