RandomGeneratorExtensions.NextInt32<TGenerator> Method

Generates a random 32-bit non-negative integer less than or equal to MaxValue.

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
public static int NextInt32<TGenerator>(
	this ref TGenerator generator
)
where TGenerator : struct, new(), IRandomGenerator

Parameters

generator  TGenerator
 

Type Parameters

TGenerator

Return Value

Int32

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TGenerator. 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