NMath Reference Guide

## Rand |

Class RandGenUniform generates random numbers from a uniform distribution.

Inheritance Hierarchy

Syntax

The RandGenUniform type exposes the following members.

Constructors

Name | Description | |
---|---|---|

RandGenUniform | Constructs a random number generator using a RandGenMTwist as the underlying uniform random number generator. The lower and bounds bounds of the deviates are 0 and 1, respectively. | |

RandGenUniform(Int32) | Constructs a random number generator using a seeded RandGenMTwist as the underlying uniform random number generator. The lower and bounds bounds of the deviates are 0 and 1, respectively. | |

RandGenUniform(Interval) | Constructs a random number generator using a RandGenMTwist as the underlying uniform random number generator. The generated deviates will follow a uniform distribution within the specified interval. | |

RandGenUniform(RandomNumberGeneratorUniformRandomNumber) | Constructs a random number generator using the given delegate as the underlying uniform random number generator. The lower and bounds bounds of the deviates are 0 and 1, respectively. | |

RandGenUniform(Double, Double) | Constructs a random number generator using a RandGenMTwist as the underlying uniform random number generator. The generated deviates will follow a uniform distribution with the specified lower and upper bounds. | |

RandGenUniform(Interval, Int32) | Constructs a random number generator using a seeded RandGenMTwist as the underlying uniform random number generator. The generated deviates will follow a uniform distribution within the specified interval. | |

RandGenUniform(Double, Double, RandomNumberGeneratorUniformRandomNumber) | Constructs a random number generator using the given delegate as the underlying uniform random number generator. The generated deviates will follow a uniform distribution with the specified lower and upper bounds. | |

RandGenUniform(Double, Double, Int32) | Constructs a random number generator using a seeded RandGenMTwist as the underlying uniform random number generator. The generated deviates will follow a uniform distribution with the specified lower and upper bounds. |

Properties

Name | Description | |
---|---|---|

LowerBound | Gets and sets the lower bound for this generator. | |

UniformDeviateMethod |
Gets and sets the delegate method for generating uniform deviates between
zero and one.
(Inherited from RandomNumberGenerator) | |

UpperBound | Gets and set the upper bound for this generator. |

Methods

Name | Description | |
---|---|---|

Clone |
Creates a deep copy of this random number generator.
(Overrides RandomNumberGeneratorClone) | |

Fill(Double) |
Fills the given array of doubles with random values.
(Overrides RandomNumberGeneratorFill(Double)) | |

Fill(DoubleComplex) |
Fills the given array of double-precision complex numbers with random values.
(Overrides RandomNumberGeneratorFill(DoubleComplex)) | |

Fill(DoubleDataBlock) |
Fills the given data block with random values.
(Inherited from RandomNumberGenerator) | |

Fill(FloatComplex) |
Fills the given array of single-precision complex numbers with random values.
(Inherited from RandomNumberGenerator) | |

Fill(Single) |
Fills the given array of floats with random values.
(Inherited from RandomNumberGenerator) | |

Next | Generates a random number. | |

NextDouble |
Generates a double precision random number.
(Overrides RandomNumberGeneratorNextDouble) | |

NextDoubleComplex |
Method for generating a double precision complex number random deviate.
(Overrides RandomNumberGeneratorNextDoubleComplex) | |

NextFloat |
Method for generating a single precision random deviate.
(Inherited from RandomNumberGenerator) | |

NextFloatComplex |
Method for generating a single precision complex number random deviate.
(Inherited from RandomNumberGenerator) | |

Reset |
Resets the random number generator using a random seed.
(Inherited from RandomNumberGenerator) | |

Reset(Int32) |
Resets the random number generator with the specified seed.
(Inherited from RandomNumberGenerator) | |

SetRange(Interval) | Sets the range for this generator to the specifed interval. | |

SetRange(Double, Double) | Sets the range for this generator to the specifed lower and upper bounds. |

Fields

Name | Description | |
---|---|---|

rand_ |
A delegate method for generating uniform deviates between zero and one.
(Inherited from RandomNumberGenerator) |

See Also