Pcg 32.Next Bounded Method
Returns a random unsigned integer less than the specified value.
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
A random number between 0 and maxValue.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public uint NextBounded(
uint maxValue
)
Parameters
- maxValue UInt32
- The (exclusive) upper bound for the random number.
Return Value
UInt32A random number between 0 and maxValue.
Remarks
This method is provided for compatibility with the standard
PCG implementation. Next(Int32) is faster
but produces different random values.