RandomSourceExtensions Methods

Methods

Fill(IRandomSource, IList<Double>) Fills the elements of a specified span with random double-precision floating-point numbers.
Fill(IRandomSource, Span<Double>) Fills the elements of a specified span with random double-precision floating-point numbers.
Fill(IRandomSource, Span<Int32>) Fills the elements of a specified span with random 32-bit signed integers.
Fill(IRandomSource, Span<Int64>) Fills the elements of a specified span with random 64-bit signed integers.
Fill(IRandomSource, Span<Single>) Fills the elements of a specified span with random single-precision floating-point numbers.
Fill(IRandomSource, Span<Int32>, Int32) Fills the elements of a specified span with random 32-bit signed integers less than the specified maximum.
Fill(IRandomSource, Span<Int64>, Int64) Fills the elements of a specified span with random 64-bit signed integers less than the specified maximum.
Fill(IRandomSource, Span<Int32>, Int32, Int32) Fills the elements of a specified span with random 32-bit signed integers within a specified range.
Fill(IRandomSource, Span<Int64>, Int64, Int64) 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.
FillWithoutReplacement(IRandomSource, Int32, Span<Int32>) Populates the specified span with numbers chosen at random between 0 and the provided count without replacement.
FillWithoutReplacement<TGenerator>(IRandomSource<TGenerator>, Int32, Span<Int32>) Populates the specified span with numbers chosen at random between 0 and the provided count without replacement.
Next(IRandomSource) Returns a non-negative random integer.
Next(IRandomSource, Int32) Returns a non-negative random integer that is less than the specified maximum.
Next(IRandomSource, Int32, Int32) 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.
NextDouble(IRandomSource) Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0.
NextDouble<TGenerator>(IRandomSource<TGenerator>) Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0.
NextInt32(IRandomSource) Returns a non-negative random 32-bit integer.
NextInt32<TGenerator>(IRandomSource<TGenerator>) Returns a non-negative random 32-bit integer.
NextInt64(IRandomSource) Returns a non-negative random 64-bit integer.
NextInt64(IRandomSource, Int64) Returns a non-negative random 64-bit integer that is less than the specified maximum.
NextInt64(IRandomSource, Int64, Int64) Returns a random 64-bit integer that is within a specified range.
NextInt64<TGenerator>(IRandomSource<TGenerator>) Returns a non-negative random 64-bit integer.
NextInt64<TGenerator>(IRandomSource<TGenerator>, Int64) Returns a non-negative random 64-bit integer that is less than the specified maximum.
NextInt64<TGenerator>(IRandomSource<TGenerator>, Int64, Int64) Returns a random 64-bit integer that is within a specified range.
NextSingle(IRandomSource) Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0.
NextSingle<TGenerator>(IRandomSource<TGenerator>) 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.

See Also