VPSerializableMersenneTwister MembersVirtual Photonics - VTS Library
Virtual Photonics

The SerializableMersenneTwister type exposes the following members.
Constructors

  NameDescription
Public methodSerializableMersenneTwister 
Initializes a new instance of the MersenneTwister class using the current time as the seed.
Public methodSerializableMersenneTwister(Boolean)
Initializes a new instance of the MersenneTwister class using the current time as the seed.
Public methodSerializableMersenneTwister(Int32)
Initializes a new instance of the MersenneTwister class.
Public methodSerializableMersenneTwister(Int32, Boolean)
Initializes a new instance of the MersenneTwister class.
Back to Top
Methods

  NameDescription
Public methodStatic memberCreate
Protected methodDoSample
Returns a random number between 0.0 and 1.0.
(Overrides AbstractRandomNumberGeneratorDoSample .)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodStatic memberFromFile
methods to save current state of random number generator
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodNext  (Inherited from AbstractRandomNumberGenerator.)
Public methodNext(Int32) (Inherited from AbstractRandomNumberGenerator.)
Public methodNext(Int32, Int32) (Inherited from AbstractRandomNumberGenerator.)
Public methodNextBytes (Inherited from AbstractRandomNumberGenerator.)
Public methodOnlineNextDouble 
Returns a random number between 0.0 and 1.0.
(Inherited from OnlineRandom.)
Public methodNextDouble(Int32) (Inherited from AbstractRandomNumberGenerator.)
Protected methodSample (Inherited from AbstractRandomNumberGenerator.)
Public methodToFile
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodNextDouble
Extension method to generate a random number within a specified range
(Defined by RNGExtensions.)
Back to Top
Properties

  NameDescription
Public propertyMT
variable within algorithm needed to resume series if interruptes
Public propertyMTI
variable within algorithm needed to resume series if interruptes
Back to Top
See Also