The YRandom type exposes the following members.

Constructors

  NameDescription
Public methodYRandom()()()()
Creates a new instance of this class.
Public methodYRandom(Int64)
Creates a new instance of this class with a given initial random seed.

Methods

  NameDescription
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 the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBoolArray
Returns an array of n randomly chosen boolean values of which trueCount of them are trueTruetruetrue (True in Visual Basic).
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetIntArray
Returns an int array of length bucketCount for which the values of all fields are non-negative and sum up to ballCount.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUniqueArray
Returns an array of n unique random integers that lie within the range min (inclusive) and max (exclusive).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNext
Generate the next pseudo random number
(Inherited from Random.)
Public methodNextBoolean
Generate the next pseudo random number as a boolean value.
(Inherited from Random.)
Public methodNextDouble()()()()
Generate the next pseudo random number as a double value in the interval 0.0 (inclusive) and 1.0 (exclusive)
(Inherited from Random.)
Public methodNextDouble(Double, Double)
Returns a double with a random value between minValue (inclusive) and maxValue (exclusive).
Public methodNextFloat
Generate the next pseudo random number as a float value in the interval 0.0 (inclusive) and 1.0 (exclusive)
(Inherited from Random.)
Public methodNextInt()()()()
Generate the next pseudo random number
(Inherited from Random.)
Public methodNextInt(Int32)
Returns a pseudo-random, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
(Overrides Random..::..NextInt(Int32).)
Public methodNextInt(Int32, Int32)
Returns an int with a random value between minValue (inclusive) and maxValue (exclusive).
Public methodPermutate
Permutes the positions of the elements within the given array.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertySeed
The seed of this instance.
(Inherited from Random.)

See Also