NextUInt
Returns a uniformly random uint value in the interval [0, 4294967294].
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
NextUInt()
Returns a uniformly random uint value in the interval [0, 4294967294].
public uint NextUInt()
Returns
Type | Description |
|---|---|
| uint | A uniformly random unsigned integer. |
NextUInt(uint)
Returns a uniformly random uint value in the interval [0, max).
public uint NextUInt(uint max)
Parameters
The maximum value to generate, exclusive.
Returns
Type | Description |
|---|---|
| uint | A uniformly random unsigned integer in the range [0, max). |
NextUInt(uint, uint)
Returns a uniformly random uint value in the interval [min, max).
public uint NextUInt(uint min, uint max)
Parameters
Returns
Type | Description |
|---|---|
| uint | A uniformly random unsigned integer in the range [min, max). |