RandomExtensions.NextUInt32 Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0

Overload List

NextUInt32(Random) Returns a random 64-bit integer.
NextUInt32(Random, UInt32) Returns a random unsigned integer less than the specified value.

NextUInt32(Random)

Returns a random 64-bit integer.
C#
public static uint NextUInt32(
	this Random random
)

Parameters

random  Random
 

Return Value

UInt32
A 64-bit unsigned integer.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Random. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

NextUInt32(Random, UInt32)

Returns a random unsigned integer less than the specified value.
C#
public static uint NextUInt32(
	this Random random,
	uint maxValue
)

Parameters

random  Random
 
maxValue  UInt32
The exclusive upper bound of the random number to be generated.

Return Value

UInt32
A 32-bit unsigned integer that is greater than or equal to 0.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Random. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also