Click or drag to resize

Generator Methods

The Generator type exposes the following members.

Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNext Returns a nonnegative random number less than MaxValue.
Public methodNext(Int32) Returns a nonnegative random number less than the specified maximum.
Public methodNext(Int32, Int32) Returns a random number within the specified range.
Public methodNextBoolean Returns a random Boolean value.
Public methodNextBytes Fills the elements of a specified array of bytes with random numbers.
Public methodNextDouble Returns a nonnegative floating point random number less than 1.0.
Public methodNextDouble(Double) Returns a nonnegative floating point random number less than the specified maximum.
Public methodNextDouble(Double, Double) Returns a floating point random number within the specified range.
Public methodNextPositiveDouble Returns a floating point random number in the range (0,1), i.e. greater than 0.0 and less than 1.0.
Public methodReset Resets the random number generator, so that it produces the same random number sequence again.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also