![]() | GlobalRandomGenerator Class |
Namespace: WhetStone.Random
public class GlobalRandomGenerator : RandomGenerator
The GlobalRandomGenerator type exposes the following members.
Name | Description | |
---|---|---|
![]() | GlobalRandomGenerator |
Name | Description | |
---|---|---|
![]() | Bool |
get a random Boolean.
(Inherited from RandomGenerator.) |
![]() | Byte |
Get a random Byte.
(Overrides RandomGeneratorByte.) |
![]() | Bytes |
Generate random Bytes in an IEnumerableT.
(Inherited from RandomGenerator.) |
![]() | Bytes(Int32) | (Overrides RandomGeneratorBytes(Int32).) |
![]() | Double |
Get a random Double between 0 and 1.
(Overrides RandomGeneratorDouble.) |
![]() | Double(Double) |
Get a random Double.
(Inherited from RandomGenerator.) |
![]() | Double(Double, Double) |
Get a random Double.
(Overrides RandomGeneratorDouble(Double, Double).) |
![]() | 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.) |
![]() | fromFieldT |
Generate a random element of a generic type using fielding.
(Inherited from RandomGenerator.) |
![]() | fromFieldT(T, T) |
Generate a random element of a generic type using fielding.
(Inherited from RandomGenerator.) |
![]() | fromFieldT(T, T, Object) |
Generate a random element of a generic type using fielding.
(Inherited from RandomGenerator.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Int |
Get a random Int32.
(Inherited from RandomGenerator.) |
![]() | Int(Int32) |
Get a random Int32.
(Inherited from RandomGenerator.) |
![]() | Int(Int32, Int32) |
Get a random Int32.
(Overrides RandomGeneratorInt(Int32, Int32).) |
![]() | Int(Int32, Int32, Boolean) |
Get a random Int32.
(Inherited from RandomGenerator.) |
![]() | Long(Int64) |
Get a random Int64.
(Inherited from RandomGenerator.) |
![]() | Long(Int64, Int64) |
Get a random Int64.
(Inherited from RandomGenerator.) |
![]() | Long(Int64, Int64, Boolean) |
Get a random Int64.
(Inherited from RandomGenerator.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | Reset |
Resets an instance of the static generator.
|
![]() | success |
get a random Boolean.
(Inherited from RandomGenerator.) |
![]() ![]() | ThreadLocal |
Get the thread-unsafe RandomGenerator reserved for this thread only.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | ULong(UInt64) |
Get a random UInt64.
(Inherited from RandomGenerator.) |
![]() | ULong(UInt64, UInt64) |
Get a random UInt64.
(Inherited from RandomGenerator.) |
![]() | ULong(UInt64, UInt64, Boolean) |
Get a random UInt64.
(Inherited from RandomGenerator.) |
To ensure thread safety, usage of this RandomGenerator is slightly slower than using LocalRandomGenerator. Consider creating an instance upon rapid usage.
Every thread has an independent static RandomGenerator, this means that advancing one will not advance others.