RandomExtensions Methods

Methods

AsParallel Returns a thread-safe version of this random number generator.
Fill(Random, IList<Double>) Fills a Double array with random numbers.
Fill(Random, IList<Int32>) Fills an Int32 array with random numbers.
Fill(Random, IList<Double>, Int32, Int32) Fills a Double array with random numbers.
Fill(Random, IList<Int32>, Int32, Int32) Fills an Int32 array with random numbers.
FillNormal(Random, IList<Double>) Fills a list with normal random numbers with zero mean and unit standard deviation.
FillNormal(Random, IList<Double>, Int32, Int32) Fills a list with normal random numbers with zero mean and unit standard deviation.
GetItemsWithoutReplacement<T>(Random, T[], Int32) Creates an array populated with items chosen at random from the provided set of choices without replacement.
GetItemsWithoutReplacement<T>(Random, ReadOnlySpan<T>, Int32) Creates an array populated with items chosen at random from the provided set of choices without replacement.
GetItemsWithoutReplacement<T>(Random, ReadOnlySpan<T>, Span<T>) Populates the specified span with items chosen at random from the provided set of choices without replacement.

See Also