Contains the random number generator used for ID and random seed assignments.
More...
|
static int | AutoAssignId (int id) |
| If the specified ID is less than or equal to zero, returns a new random positive integer ID. Otherwise, returns the ID. More...
|
|
static RandomSeed | CreateRandomSeed (int seed) |
| Returns a new RandomSeed object for the given seed. If the specified seed is less than or equal to zero, a random positive integer seed is used instead. More...
|
|
static int | GetRandomId () |
| Returns a random positive integer ID. More...
|
|
|
static Random | Random = new Random() [get] |
|
Contains the random number generator used for ID and random seed assignments.
Definition at line 9 of file Rand.cs.
◆ AutoAssignId()
static int AutoAssignId |
( |
int |
id | ) |
|
|
static |
If the specified ID is less than or equal to zero, returns a new random positive integer ID. Otherwise, returns the ID.
- Parameters
-
Definition at line 18 of file Rand.cs.
◆ CreateRandomSeed()
static RandomSeed CreateRandomSeed |
( |
int |
seed | ) |
|
|
static |
Returns a new RandomSeed object for the given seed. If the specified seed is less than or equal to zero, a random positive integer seed is used instead.
- Parameters
-
Definition at line 36 of file Rand.cs.
◆ GetRandomId()
static int GetRandomId |
( |
| ) |
|
|
static |
Returns a random positive integer ID.
Definition at line 26 of file Rand.cs.
◆ Random
Random Random = new Random() |
|
staticget |
The documentation for this class was generated from the following file:
- /github/workspace/addons/mpewsey.maniamap/scripts/runtime/Rand.cs