Random number generator.
Convenient object to generate random numbers. This is basically just Random but extended with some useful methods.
Namespace: Optimization
Assembly: Optimization (in Optimization.dll)
See Also: Inherited members from object.
⊟ Public Constructors
⊟ Public Methods
⊟ Random Constructor
Create new Random object.
public Random ()⊟ Remarks
Create new Random object.⊟ Requirements
Namespace: Optimization
Assembly: Optimization (in Optimization.dll)
⊟ Random Constructor
Create new Random object.
public Random (int seed)⊟ Parameters
- seed
- The seed.
⊟ Remarks
Create a new Random object and seed the random number generator. Use this if you need to have reproducible sequence of random numbers.⊟ Requirements
Namespace: Optimization
Assembly: Optimization (in Optimization.dll)
⊟ Random Constructor
Create new random number generator from existing generator.
public Random (Random rnd)⊟ Parameters
- rnd
- Existing random number generator.
⊟ Remarks
Creates a new random number generator using an existing generator.⊟ Requirements
Namespace: Optimization
Assembly: Optimization (in Optimization.dll)
⊟ NextDouble Method
Generate next random number.
public double NextDouble ()⊟ Returns
The next random number.⊟ Remarks
Generate and return the next random number.⊟ Requirements
Namespace: Optimization
Assembly: Optimization (in Optimization.dll)
⊟ Range Method
Generate a random number in a specific range.
⊟ Parameters
- min
- Minimum range.
- max
- Maximum range.
⊟ Returns
A random number.⊟ Remarks
Generate a random number in a specific range.⊟ Requirements
Namespace: Optimization
Assembly: Optimization (in Optimization.dll)
⊟ Seed Method
Seed the random number generator.
⊟ Parameters
- seed
- The seed.
⊟ Remarks
Use this if you need to have reproducible sequence of random numbers.⊟ Requirements
Namespace: Optimization
Assembly: Optimization (in Optimization.dll)