Extends the functionality of Random.

Namespace: Extreme.Statistics.Random
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Class ExtendedRandom _
	Inherits Random
C#
public class ExtendedRandom : Random
C++
public ref class ExtendedRandom : public Random

Methods

IconTypeDescription
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Fill(Double[]())
Fills a Double array with random numbers.
Fill(Vector)
Fills a Vector with random numbers.
Fill(Double[](), Int32, Int32)
Fills a Double array with random numbers.
Fill(Double[](), ContinuousDistribution)
Fills a Double array with random samples from the specified distribution.
Fill(Vector, ContinuousDistribution)
Fills a Vector with random samples from the specified distribution.
Fill(Double[](), Int32, Int32, ContinuousDistribution)
Fills a Double array with random samples from the specified distribution.
Fill(Int32[]())
Fills an Int32 array with random numbers.
Fill(Int32[](), Int32, Int32)
Fills an Int32 array with random numbers.
Fill(Int32[](), DiscreteDistribution)
Fills an Int32 array with random samples from the specified distribution.
Fill(Vector, DiscreteDistribution)
Fills a Vector with random samples from the specified distribution.
Fill(Int32[](), Int32, Int32, DiscreteDistribution)
Fills an Int32 array with random samples from the specified distribution.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetHashCode()
Serves as a hash function for a particular type.
GetType()
Gets the Type of the current instance.
MemberwiseClone()
Creates a shallow copy of the current Object.
Next(DiscreteDistribution)
Returns a sample from the specified distribution.
Next(Int32, Int32)
Returns a random number within a specified range.
Next(Int32)
Returns a nonnegative random number less than the specified maximum.
NextBytes(Byte[]())
Fills the elements of a specified array of bytes with random numbers.
NextDouble(ContinuousDistribution)
Returns a sample from the specified distribution.
Sample()
Returns a random number between 0.0 and 1.0.
ToString()
Returns a String that represents the current Object.

Constructors

IconTypeDescription
ExtendedRandomNew()
Constructs a new ExtendedRandom object.

Remarks

Use the ExtendedRandom class to represent a random number generator with more functionality than the Random class supplied with the .NET Framework Base Class Libraries.

In particular, ExtendedRandom provides a Fill(Double[]()) method which allows a sequence of pseudo-random numbers to be generated in one operation.

The Next(DiscreteDistribution) and NextDouble(ContinuousDistribution) classes also support generation of random numbers from any distribution.

Inheritance Hierarchy

System.Object
  System.Random
    Extreme.Statistics.Random.ExtendedRandom