Random Source Extensions Class
Provides extension methods for Numerics.NET random sources (IRandomSource).
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
public static class RandomSourceExtensions- Inheritance
- Object → RandomSourceExtensions
Remarks
These extensions provide convenient ways to generate random values and fill spans or arrays using Numerics.NET random number generators.
All methods delegate to high-performance generator-based internal implementations, ensuring consistent behavior and optimal performance.
Methods
| Fill( | Fills the elements of a specified span with random double-precision floating-point numbers. |
| Fill( | Fills the elements of a specified span with random double-precision floating-point numbers. |
| Fill( | Fills the elements of a specified span with random 32-bit signed integers. |
| Fill( | Fills the elements of a specified span with random 64-bit signed integers. |
| Fill( | Fills the elements of a specified span with random single-precision floating-point numbers. |
| Fill( | Fills the elements of a specified span with random 32-bit signed integers less than the specified maximum. |
| Fill( | Fills the elements of a specified span with random 64-bit signed integers less than the specified maximum. |
| Fill( | Fills the elements of a specified span with random 32-bit signed integers within a specified range. |
| Fill( | Fills the elements of a specified span with random 64-bit signed integers within a specified range. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Span<Double>) | Fills the elements of a specified span with random double-precision floating-point numbers. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Span<Int32>) | Fills the elements of a specified span with random 32-bit signed integers. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Span<Int64>) | Fills the elements of a specified span with random 64-bit signed integers. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Span<Single>) | Fills the elements of a specified span with random single-precision floating-point numbers. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Span<Int32>, Int32) | Fills the elements of a specified span with random 32-bit signed integers less than the specified maximum. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Span<Int64>, Int64) | Fills the elements of a specified span with random 64-bit signed integers less than the specified maximum. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Span<Int32>, Int32, Int32) | Fills the elements of a specified span with random 32-bit signed integers within a specified range. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Span<Int64>, Int64, Int64) | Fills the elements of a specified span with random 64-bit signed integers within a specified range. |
| Fill | Populates the specified span with numbers chosen at random between 0 and the provided count without replacement. |
| Fill | Populates the specified span with numbers chosen at random between 0 and the provided count without replacement. |
| Next( | Returns a non-negative random integer. |
| Next( | Returns a non-negative random integer that is less than the specified maximum. |
| Next( | Returns a random integer that is within a specified range. |
| Next<TGenerator>(IRandomSource<TGenerator>) | Returns a non-negative random integer. |
| Next<TGenerator>(IRandomSource<TGenerator>, Int32) | Returns a non-negative random integer that is less than the specified maximum. |
| Next<TGenerator>(IRandomSource<TGenerator>, Int32, Int32) | Returns a random integer that is within a specified range. |
| Next | Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0. |
| Next | Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0. |
| Next | Returns a non-negative random 32-bit integer. |
| Next | Returns a non-negative random 32-bit integer. |
| Next | Returns a non-negative random 64-bit integer. |
| Next | Returns a non-negative random 64-bit integer that is less than the specified maximum. |
| Next | Returns a random 64-bit integer that is within a specified range. |
| Next | Returns a non-negative random 64-bit integer. |
| Next | Returns a non-negative random 64-bit integer that is less than the specified maximum. |
| Next | Returns a random 64-bit integer that is within a specified range. |
| Next | Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0. |
| Next | Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0. |
| Shuffle<T>(IRandomSource, T[]) | Shuffles the elements of an array in place using the Fisher-Yates algorithm. |
| Shuffle<T>(IRandomSource, IList<T>) | Shuffles the elements of an IList<T> in place using the Fisher-Yates algorithm. |
| Shuffle<T>(IRandomSource, Span<T>) | Shuffles the elements of a span in place using the Fisher-Yates algorithm. |
| Shuffle<TGenerator, T>(IRandomSource<TGenerator>, T[]) | Shuffles the elements of an array in place using the Fisher-Yates algorithm. |
| Shuffle<TGenerator, T>(IRandomSource<TGenerator>, Span<T>) | Shuffles the elements of a span in place using the Fisher-Yates algorithm. |