Click or drag to resize

RandomGenerator Methods

The RandomGenerator type exposes the following members.

Methods
  NameDescription
Public methodBool
get a random Boolean.
Public methodByte
Get a random Byte.
Public methodBytes
Public methodBytes(Int32)
Generate random Bytes in an Array.
Public methodDouble
Get a random Double between 0 and 1.
Public methodDouble(Double)
Get a random Double.
Public methodDouble(Double, Double)
Get a random Double.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodfromFieldT
Generate a random element of a generic type using fielding.
Public methodfromFieldT(T, T)
Generate a random element of a generic type using fielding.
Public methodfromFieldT(T, T, Object)
Generate a random element of a generic type using fielding.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInt
Get a random Int32.
Public methodInt(Int32)
Get a random Int32.
Public methodInt(Int32, Int32)
Get a random Int32.
Public methodInt(Int32, Int32, Boolean)
Get a random Int32.
Public methodLong(Int64)
Get a random Int64.
Public methodLong(Int64, Int64)
Get a random Int64.
Public methodLong(Int64, Int64, Boolean)
Get a random Int64.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodsuccess
get a random Boolean.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodULong(UInt64)
Get a random UInt64.
Public methodULong(UInt64, UInt64)
Get a random UInt64.
Public methodULong(UInt64, UInt64, Boolean)
Get a random UInt64.
Top
See Also