RandomGeneratorExtensions.Fill Method

Definition

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

Overload List

Fill<TGenerator>(TGenerator, Span<Double>) Fills a span with random double-precision floating-point numbers in [0, 1).
Fill<TGenerator>(TGenerator, Span<Int32>) Fills a span with random 32-bit signed integers.
Fill<TGenerator>(TGenerator, Span<Int64>) Fills a span with random 64-bit signed integers.
Fill<TGenerator>(TGenerator, Span<UInt32>) Fills a span with random 32-bit unsigned integers.
Fill<TGenerator>(TGenerator, Span<UInt64>) Fills a span with random 64-bit unsigned integers.
Fill<TGenerator>(TGenerator, Span<Int32>, Int32) Fills a span with random 32-bit signed integers less than the specified maximum.
Fill<TGenerator>(TGenerator, Span<Int64>, Int64) Fills a span with random 64-bit signed integers less than the specified maximum.
Fill<TGenerator>(TGenerator, Span<Int32>, Int32, Int32) Fills a span with random 32-bit signed integers within a specified range.
Fill<TGenerator>(TGenerator, Span<Int64>, Int64, Int64) Fills a span with random 64-bit signed integers within a specified range.

Fill<TGenerator>(TGenerator, Span<Double>)

Fills a span with random double-precision floating-point numbers in [0, 1).
C#
public static void Fill<TGenerator>(
	this ref TGenerator generator,
	Span<double> destination
)
where TGenerator : struct, new(), IRandomGenerator

Parameters

generator  TGenerator
 
destination  Span<Double>
 

Type Parameters

TGenerator

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).

Fill<TGenerator>(TGenerator, Span<Int32>)

Fills a span with random 32-bit signed integers.
C#
public static void Fill<TGenerator>(
	this ref TGenerator generator,
	Span<int> destination
)
where TGenerator : struct, new(), IRandomGenerator

Parameters

generator  TGenerator
 
destination  Span<Int32>
 

Type Parameters

TGenerator

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).

Fill<TGenerator>(TGenerator, Span<Int64>)

Fills a span with random 64-bit signed integers.
C#
public static void Fill<TGenerator>(
	this ref TGenerator generator,
	Span<long> destination
)
where TGenerator : struct, new(), IRandomGenerator

Parameters

generator  TGenerator
 
destination  Span<Int64>
 

Type Parameters

TGenerator

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).

Fill<TGenerator>(TGenerator, Span<UInt32>)

Fills a span with random 32-bit unsigned integers.
C#
public static void Fill<TGenerator>(
	this ref TGenerator generator,
	Span<uint> destination
)
where TGenerator : struct, new(), IRandomGenerator

Parameters

generator  TGenerator
 
destination  Span<UInt32>
 

Type Parameters

TGenerator

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).

Fill<TGenerator>(TGenerator, Span<UInt64>)

Fills a span with random 64-bit unsigned integers.
C#
public static void Fill<TGenerator>(
	this ref TGenerator generator,
	Span<ulong> destination
)
where TGenerator : struct, new(), IRandomGenerator

Parameters

generator  TGenerator
 
destination  Span<UInt64>
 

Type Parameters

TGenerator

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).

Fill<TGenerator>(TGenerator, Span<Int32>, Int32)

Fills a span with random 32-bit signed integers less than the specified maximum.
C#
public static void Fill<TGenerator>(
	this ref TGenerator generator,
	Span<int> destination,
	int maxValue
)
where TGenerator : struct, new(), IRandomGenerator

Parameters

generator  TGenerator
 
destination  Span<Int32>
 
maxValue  Int32
 

Type Parameters

TGenerator

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).

Fill<TGenerator>(TGenerator, Span<Int64>, Int64)

Fills a span with random 64-bit signed integers less than the specified maximum.
C#
public static void Fill<TGenerator>(
	this ref TGenerator generator,
	Span<long> destination,
	long maxValue
)
where TGenerator : struct, new(), IRandomGenerator

Parameters

generator  TGenerator
 
destination  Span<Int64>
 
maxValue  Int64
 

Type Parameters

TGenerator

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).

Fill<TGenerator>(TGenerator, Span<Int32>, Int32, Int32)

Fills a span with random 32-bit signed integers within a specified range.
C#
public static void Fill<TGenerator>(
	this ref TGenerator generator,
	Span<int> destination,
	int minValue,
	int maxValue
)
where TGenerator : struct, new(), IRandomGenerator

Parameters

generator  TGenerator
 
destination  Span<Int32>
 
minValue  Int32
 
maxValue  Int32
 

Type Parameters

TGenerator

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).

Fill<TGenerator>(TGenerator, Span<Int64>, Int64, Int64)

Fills a span with random 64-bit signed integers within a specified range.
C#
public static void Fill<TGenerator>(
	this ref TGenerator generator,
	Span<long> destination,
	long minValue,
	long maxValue
)
where TGenerator : struct, new(), IRandomGenerator

Parameters

generator  TGenerator
 
destination  Span<Int64>
 
minValue  Int64
 
maxValue  Int64
 

Type Parameters

TGenerator

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