Parameters
RandomNumberGenerator rng
The RandomNumberGenerator to use.
bool threadSafe
if set to true , the class is thread safe.
Type CryptoRandomSource
Namespace MathNet.Numerics.Random
Parent RandomSource
Interfaces IDisposable
RandomNumberGenerator rngThe RandomNumberGenerator to use.
bool threadSafeif set to true , the class is thread safe.
Uses the value of ThreadSafeRandomNumberGenerators to set whether the instance is thread safe.
Uses RandomNumberGenerator and uses the value of ThreadSafeRandomNumberGenerators to set whether the instance is thread safe.
Uses RandomNumberGenerator
bool threadSafeif set to true , the class is thread safe.
Supports being called in parallel from multiple threads.
Supports being called in parallel from multiple threads.
Supports being called in parallel from multiple threads.
int maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive ≥ 1.
intA 32-bit signed integer less than maxExclusive.
int minInclusiveThe inclusive lower bound of the random number returned.
int maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive > minExclusive.
intA 32-bit signed integer greater than or equal to minInclusive and less than maxExclusive ; that is, the range of return values includes minInclusive but not maxExclusive. If minInclusive equals maxExclusive , minInclusive is returned.
Byte[] bufferAn array of bytes to contain random numbers.
int countThe size of the array to fill.
Double[] valuesThe array to fill with random values.
int countThe size of the array to fill.
int maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive ≥ 1.
int countThe size of the array to fill.
int minInclusiveThe inclusive lower bound of the random number returned.
int maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive > minExclusive.
Int32[] valuesThe array to fill with random values.
int minInclusiveThe inclusive lower bound of the random number returned.
int maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive > minExclusive.
Int32[] valuesThe array to fill with random values.
int maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive ≥ 1.
int countThe size of the array to fill.
Int32[] valuesThe array to fill with random values.
int minInclusiveThe inclusive lower bound of the random number returned.
int maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive > minExclusive.