Contains methods for creating random ID's.
More...
|
static int | AutoAssignId (int id) |
| If the specified ID is greater than zero, returns the ID. Otherwise, returns a random positive integer. More...
|
|
static int | GetRandomId () |
| Returns a random positive integer. More...
|
|
Contains methods for creating random ID's.
Definition at line 8 of file Rand.cs.
◆ AutoAssignId()
static int AutoAssignId |
( |
int |
id | ) |
|
|
static |
If the specified ID is greater than zero, returns the ID. Otherwise, returns a random positive integer.
- Parameters
-
id | The ID to test for validity. |
Definition at line 15 of file Rand.cs.
◆ GetRandomId()
static int GetRandomId |
( |
| ) |
|
|
static |
Returns a random positive integer.
Definition at line 23 of file Rand.cs.
The documentation for this class was generated from the following file:
- /github/workspace/Packages/ManiaMap.Unity/Scripts/Runtime/Rand.cs