Click or drag to resize

RandomGenerator Class

A class of random number generator.
Inheritance Hierarchy
SystemObject
  FinMath.StatisticsRandomGenerator

Namespace:  FinMath.Statistics
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
[SerializableAttribute]
public class RandomGenerator : ISerializable

The RandomGenerator type exposes the following members.

Constructors
  NameDescription
Public methodRandomGenerator
Initializes a new instance of the RandomGenerator, using random seed value. By default the SIMD-oriented fast Mersenne-Twister pseudorandom number generator will be used.
Public methodRandomGenerator(Int32)
Initializes a new instance of the RandomGenerator, using the specified seed value.
Public methodRandomGenerator(RandomGeneratorType)
Initializes a new instance of the RandomGenerator, using the specified generator type.
Public methodRandomGenerator(Int32, RandomGeneratorType)
Initializes a new instance of the RandomGenerator, using the specified seed value and generator type.
Public methodRandomGenerator(SerializationInfo, StreamingContext)
The object deserialization constructor.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetObjectData
The object optimized serialization method.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodNext
Returns a nonnegative random number.
Public methodNext(Int32)
Returns a nonnegative random number less than the specified maximum.
Public methodNext(Int32, Int32)
Returns a random number within a specified range.
Public methodNextDouble
Returns a random number between 0.0 and 1.0.
Public methodNextDouble(Double)
Returns a nonnegative random number less than the specified maximum.
Public methodNextDouble(Double, Double)
Returns a random number within a specified range.
Public methodNextSeries(Double)
Fills given array with random number between 0.0 and 1.0.
Public methodNextSeries(Int32)
Returns the vector with random number between 0.0 and 1.0.
Public methodNextSeries(Int32)
Fills given array with nonnegative random numbers.
Public methodNextSeries(Matrix)
Fills given matrix with random number between 0.0 and 1.0.
Public methodNextSeries(Vector)
Fills given vector with random number between 0.0 and 1.0.
Public methodNextSeries(Double, Double)
Fills given array with nonnegative random numbers less than the specified maximum.
Public methodNextSeries(Int32, Double)
Fills given vector with nonnegative random numbers less than the specified maximum.
Public methodNextSeries(Int32, Int32)
Fills given array with nonnegative random numbers less than the specified maximum.
Public methodNextSeries(Matrix, Double)
Fills given matrix with nonnegative random numbers less than the specified maximum.
Public methodNextSeries(Vector, Double)
Fills given vector with nonnegative random numbers less than the specified maximum.
Public methodNextSeries(Double, Double, Double)
Fills given array with random numbers within a specified range.
Public methodNextSeries(Int32, Double, Double)
Fills given vector with random numbers within a specified range.
Public methodNextSeries(Int32, Int32, Int32)
Fills given array with random numbers within a specified range.
Public methodNextSeries(Matrix, Double, Double)
Fills given matrix with random numbers within a specified range.
Public methodNextSeries(Vector, Double, Double)
Fills given vector with random numbers within a specified range.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also