Functions for generating random values (numbers, names).
More...
|
|
static string | RandomName (NameTable name=NameTable.FirstGenericMale) |
| | Generates a random name using the specified name table.
|
| |
| static int | Roll (this Random random, int sides, int amount=1) |
| | Returns the result of rolling an amount of n-sided dice.
|
| |
Functions for generating random values (numbers, names).
◆ 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