Suggest a change
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close
Declaration
public UInt32 NextUInt();
Returns
UInt32
A uniformly random unsigned integer.
Description
Returns a uniformly random uint value in the interval [0, 4294967294].
Declaration
public UInt32 NextUInt(UInt32 max);
Parameters
| Parameter |
Description |
| max |
The maximum value to generate, exclusive. |
Returns
UInt32
A uniformly random unsigned integer in the range [0, max).
Description
Returns a uniformly random uint value in the interval [0, max).
Declaration
public UInt32 NextUInt(UInt32 min,
UInt32 max);
Parameters
| Parameter |
Description |
| min |
The minimum value to generate, inclusive. |
| max |
The maximum value to generate, exclusive. |
Returns
UInt32
A uniformly random unsigned integer in the range [min, max).
Description
Returns a uniformly random uint value in the interval [min, max).