RandomGeneratorExtensions Methods

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.
NextInt32<TGenerator> Generates a random 32-bit non-negative integer less than or equal to MaxValue.
NextInt64<TGenerator>(TGenerator) Generates a random 64-bit non-negative integer.
NextInt64<TGenerator>(TGenerator, Int64) Generates a random 64-bit non-negative integer less than the specified maximum.
NextInt64<TGenerator>(TGenerator, Int64, Int64) Generates a random 64-bit integer within a specified range.
NextSingle<TGenerator> Generates a random single-precision floating-point number in [0, 1).
UInt32ToSingle Converts a 32-bit unsigned integer to a single-precision floating-point number in [0, 1).
UInt64ToDouble Converts a 64-bit unsigned integer to a double-precision floating-point number in [0, 1).

See Also