Random Generator Extensions.Fill Method
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
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).
public static void Fill<TGenerator>(
this ref TGenerator generator,
Span<double> destination
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
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.
public static void Fill<TGenerator>(
this ref TGenerator generator,
Span<int> destination
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
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.
public static void Fill<TGenerator>(
this ref TGenerator generator,
Span<long> destination
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
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.
public static void Fill<TGenerator>(
this ref TGenerator generator,
Span<uint> destination
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
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.
public static void Fill<TGenerator>(
this ref TGenerator generator,
Span<ulong> destination
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
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.
public static void Fill<TGenerator>(
this ref TGenerator generator,
Span<int> destination,
int maxValue
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
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.
public static void Fill<TGenerator>(
this ref TGenerator generator,
Span<long> destination,
long maxValue
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
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.
public static void Fill<TGenerator>(
this ref TGenerator generator,
Span<int> destination,
int minValue,
int maxValue
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
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.
public static void Fill<TGenerator>(
this ref TGenerator generator,
Span<long> destination,
long minValue,
long maxValue
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
Type Parameters
- TGenerator