RandomSource<TGenerator>.Fill Method

Definition

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

Overload List

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

Fill(Span<Double>)

Fills a span with random double-precision floating-point numbers in [0, 1).
C#
public void Fill(
	Span<double> destination
)

Parameters

destination  Span<Double>
 

Implements

IRandomSource.Fill(Span<Double>)

Fill(Span<Int32>)

Fills a span with random 32-bit signed integers.
C#
public void Fill(
	Span<int> destination
)

Parameters

destination  Span<Int32>
 

Fill(Span<Int64>)

Fills a span with random 64-bit signed integers.
C#
public void Fill(
	Span<long> destination
)

Parameters

destination  Span<Int64>
 

Fill(Span<Single>)

Fills a span with random single-precision floating-point numbers in [0, 1).
C#
public void Fill(
	Span<float> destination
)

Parameters

destination  Span<Single>
 

Implements

IRandomSource.Fill(Span<Single>)

Fill(Span<UInt32>)

Fills a span with random 32-bit unsigned integer values.
C#
public void Fill(
	Span<uint> values
)

Parameters

values  Span<UInt32>
The span to fill with random values.

Implements

IRandomSource.Fill(Span<UInt32>)

Remarks

This method provides efficient bulk generation of random 32-bit values by delegating directly to the underlying generator, avoiding byte-level round-trips.

Fill(Span<UInt64>)

Fills a span with random 64-bit unsigned integer values.
C#
public void Fill(
	Span<ulong> values
)

Parameters

values  Span<UInt64>
The span to fill with random values.

Implements

IRandomSource.Fill(Span<UInt64>)

Remarks

This method provides efficient bulk generation of random 64-bit values by delegating directly to the underlying generator, avoiding byte-level round-trips.

Fill(Span<Int32>, Int32)

Fills a span with random 32-bit signed integers less than the specified maximum.
C#
public void Fill(
	Span<int> destination,
	int maxValue
)

Parameters

destination  Span<Int32>
 
maxValue  Int32
 

Fill(Span<Int64>, Int64)

Fills a span with random 64-bit signed integers less than the specified maximum.
C#
public void Fill(
	Span<long> destination,
	long maxValue
)

Parameters

destination  Span<Int64>
 
maxValue  Int64
 

Fill(Span<Int32>, Int32, Int32)

Fills a span with random 32-bit signed integers within a specified range.
C#
public void Fill(
	Span<int> destination,
	int minValue,
	int maxValue
)

Parameters

destination  Span<Int32>
 
minValue  Int32
 
maxValue  Int32
 

Fill(Span<Int64>, Int64, Int64)

Fills a span with random 64-bit signed integers within a specified range.
C#
public void Fill(
	Span<long> destination,
	long minValue,
	long maxValue
)

Parameters

destination  Span<Int64>
 
minValue  Int64
 
maxValue  Int64
 

See Also