MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
The Mersenne Twister is a pseudorandom number generator developed in 1997 by Makoto Matsumoto and Takuji Nishimura. More...
Public Member Functions | |
CMersenneTwister () | |
Creates the Mersenne Twister random number generator, and initializes it with a default seed. | |
CMersenneTwister (ulong seed) | |
Creates and initializes the Mersenne Twister by the specified seed value. | |
CMersenneTwister (ulong[] seed) | |
Creates and initializes the Mersenne Twister by the specified seed value. | |
int | Next () |
Generates a random non-negative 32-bit integer. | |
int | Next (int maxValue) |
Returns a random non-negative integer lesser then the specified value. | |
int | Next (int minValue, int maxValue) |
Returns a random integer bigger or equal to the specified minValue, and lesser then the specified maxValue. | |
double | NextDouble () |
Returns a random decimal number in the [0,1) interval. |
The Mersenne Twister is a pseudorandom number generator developed in 1997 by Makoto Matsumoto and Takuji Nishimura.
MCScheduling.GeneticAlgorithm.CMersenneTwister.CMersenneTwister | ( | ulong | seed | ) |
Creates and initializes the Mersenne Twister by the specified seed value.
seed | A number used to calculate a starting value for the pseudo-random number sequence. |
MCScheduling.GeneticAlgorithm.CMersenneTwister.CMersenneTwister | ( | ulong[] | seed | ) |
Creates and initializes the Mersenne Twister by the specified seed value.
seed | A number used to calculate a starting value for the pseudo-random number sequence. |
int MCScheduling.GeneticAlgorithm.CMersenneTwister.Next | ( | ) |
Generates a random non-negative 32-bit integer.
Implements MCScheduling.GeneticAlgorithm.IRandomizer.
int MCScheduling.GeneticAlgorithm.CMersenneTwister.Next | ( | int | maxValue | ) |
Returns a random non-negative integer lesser then the specified value.
maxValue | The exclusive upper bound of the generated random integer. |
Implements MCScheduling.GeneticAlgorithm.IRandomizer.
int MCScheduling.GeneticAlgorithm.CMersenneTwister.Next | ( | int | minValue, |
int | maxValue | ||
) |
Returns a random integer bigger or equal to the specified minValue, and lesser then the specified maxValue.
minValue | The inclusive lower bound of the generated random integer. |
maxValue | The exclusive upper bound of the generated random integer. |
Implements MCScheduling.GeneticAlgorithm.IRandomizer.
double MCScheduling.GeneticAlgorithm.CMersenneTwister.NextDouble | ( | ) |
Returns a random decimal number in the [0,1) interval.
Implements MCScheduling.GeneticAlgorithm.IRandomizer.