Pcg32.NextBounded 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#
public uint NextBounded(
	uint maxValue
)

Parameters

maxValue  UInt32
The (exclusive) upper bound for the random number.

Return Value

UInt32
A 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.

See Also