Random |
The RandomSource type exposes the following members.
| Name | Description | |
|---|---|---|
| DoSample | Returns a random double-precision floating point number greater than or equal to 0.0, and less than 1.0. | |
| DoSampleBytes | Fills the elements of a specified array of bytes with random numbers in full range, including zero and 255 (MaxValue). | |
| DoSampleInt32WithNBits | Returns a random N-bit signed integer greater than or equal to zero and less than 2^N. N (bit count) is expected to be greater than zero and less than 32 (not verified). | |
| DoSampleInt64WithNBits | Returns a random N-bit signed long integer greater than or equal to zero and less than 2^N. N (bit count) is expected to be greater than zero and less than 64 (not verified). | |
| DoSampleInteger | Returns a random 32-bit signed integer greater than or equal to zero and less than 2147483647 (MaxValue). | |
| DoSampleInteger(Int32) | Returns a random 32-bit signed integer within the specified range. | |
| DoSampleInteger(Int32, Int32) | Returns a random 32-bit signed integer within the specified range. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Next |
Returns a random 32-bit signed integer greater than or equal to zero and less than MaxValue.
(Overrides RandomNext) | |
| Next(Int32) |
Returns a random number less then a specified maximum.
(Overrides RandomNext(Int32)) | |
| Next(Int32, Int32) |
Returns a random number within a specified range.
(Overrides RandomNext(Int32, Int32)) | |
| NextBytes |
Fills the elements of a specified array of bytes with random numbers.
(Overrides RandomNextBytes(Byte)) | |
| NextDouble | Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0. (Inherited from Random) | |
| NextDoubles(Double) | Fills an array with uniform random numbers greater than or equal to 0.0 and less than 1.0. | |
| NextDoubles(Int32) | Returns an array of uniform random numbers greater than or equal to 0.0 and less than 1.0. | |
| NextDoubleSequence | Returns an infinite sequence of uniform random numbers greater than or equal to 0.0 and less than 1.0. | |
| NextInt32s(Int32) | Returns an array with random 32-bit signed integers greater than or equal to zero and less than MaxValue. | |
| NextInt32s(Int32) | Fills an array with random 32-bit signed integers greater than or equal to zero and less than MaxValue. | |
| NextInt32s(Int32, Int32) | Returns an array with random 32-bit signed integers within the specified range. | |
| NextInt32s(Int32, Int32) | Fills an array with random numbers within a specified range. | |
| NextInt32s(Int32, Int32, Int32) | Returns an array with random 32-bit signed integers within the specified range. | |
| NextInt32s(Int32, Int32, Int32) | Fills an array with random numbers within a specified range. | |
| NextInt32Sequence | Returns an infinite sequence of random 32-bit signed integers greater than or equal to zero and less than MaxValue. | |
| NextInt32Sequence(Int32, Int32) | Returns an infinite sequence of random numbers within a specified range. | |
| Sample |
Returns a random number between 0.0 and 1.0.
(Overrides RandomSample) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| NextBigIntegerSequence |
Returns an infinite sequence of uniform random BigInteger within the specified range.
(Defined by RandomExtensions) | |
| NextBoolean |
Returns a random boolean.
(Defined by RandomExtensions) | |
| NextBytes |
Returns an array of uniform random bytes.
(Defined by RandomExtensions) | |
| NextDecimal |
Returns a nonnegative decimal floating point random number less than 1.0.
(Defined by RandomExtensions) | |
| NextDoubles |
Fills an array with uniform random numbers greater than or equal to 0.0 and less than 1.0.
(Defined by RandomExtensions) | |
| NextDoubles |
Returns an array of uniform random numbers greater than or equal to 0.0 and less than 1.0.
(Defined by RandomExtensions) | |
| NextDoubleSequence |
Returns an infinite sequence of uniform random numbers greater than or equal to 0.0 and less than 1.0.
(Defined by RandomExtensions) | |
| NextFullRangeInt32 |
Returns a random number of the full Int32 range.
(Defined by RandomExtensions) | |
| NextFullRangeInt64 |
Returns a random number of the full Int64 range.
(Defined by RandomExtensions) | |
| NextInt32s |
Fills an array with uniform random 32-bit signed integers greater than or equal to zero and less than MaxValue.
(Defined by RandomExtensions) | |
| NextInt32s |
Fills an array with uniform random 32-bit signed integers within the specified range.
(Defined by RandomExtensions) | |
| NextInt32Sequence |
Returns an infinite sequence of uniform random 32-bit signed integers within the specified range.
(Defined by RandomExtensions) | |
| NextInt64 |
Returns a nonnegative random number less than MaxValue.
(Defined by RandomExtensions) |