Random Generator Extensions Class
Provides internal helper methods for Numerics.NET random generator implementations.
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 RandomGeneratorExtensions- Inheritance
- Object → RandomGeneratorExtensions
Remarks
This class provides extension methods that operate directly on generator references to enable zero-overhead operation with full JIT inlining and specialization.
All methods accept generators by ref and are marked with AggressiveInlining to ensure maximum performance.
Methods
| 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. |
| Next<TGenerator>(TGenerator) | Generates a random 32-bit non-negative integer less than MaxValue. |
| Next<TGenerator>(TGenerator, Int32) | Generates a random 32-bit non-negative integer less than the specified maximum. |
| Next<TGenerator>(TGenerator, Int32, Int32) | Generates a random 32-bit integer within a specified range. |
| Next | Generates a random 32-bit non-negative integer less than or equal to MaxValue. |
| Next | Generates a random 64-bit non-negative integer. |
| Next | Generates a random 64-bit non-negative integer less than the specified maximum. |
| Next | Generates a random 64-bit integer within a specified range. |
| Next | Generates a random single-precision floating-point number in [0, 1). |
| UInt32To | Converts a 32-bit unsigned integer to a single-precision floating-point number in [0, 1). |
| UInt64To | Converts a 64-bit unsigned integer to a double-precision floating-point number in [0, 1). |