RandomGeneratorExtensions.NextSingle<TGenerator> Method

Generates a random single-precision floating-point number in [0, 1).

Definition

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

Parameters

generator  TGenerator
 

Type Parameters

TGenerator

Return Value

Single

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