#include <SIG_Randomizer.h>
Public Methods | |
SIG_Randomizer () | |
This randomizer creates random numbers, which are used for the genetic programming. More... | |
SIG_Randomizer (int seed) | |
This constructor initializes the generator with seed. More... | |
~SIG_Randomizer () | |
int | getRandomInt (int maximum) |
This operation returns a randomly generated integer number between 0 and maximum. More... | |
long | getRandomLong (long maximum) |
This operation returns a randomly generated long integer number between 0 and maximum. More... | |
void | setNewSeed (int seed) |
Sets a new seed. More... | |
Private Attributes | |
unsigned long int | next |
Definition at line 12 of file SIG_Randomizer.h.
|
This randomizer creates random numbers, which are used for the genetic programming.
Definition at line 5 of file SIG_Randomizer.cpp. |
|
This constructor initializes the generator with seed.
Definition at line 11 of file SIG_Randomizer.cpp. |
|
Definition at line 28 of file SIG_Randomizer.cpp. |
|
This operation returns a randomly generated integer number between 0 and maximum.
Definition at line 31 of file SIG_Randomizer.cpp. Referenced by SIGEL_GP::SIG_GPManager::createTours(), SIGEL_GP::SIG_GPOperations::crossOver(), SIGEL_Program::SIG_Program::generateRandomProgram(), getRandomLong(), SIGEL_GP::SIG_GPOperations::mutation(), and SIGEL_Program::SIG_ProgramLine::randomRobotinstruction(). |
|
This operation returns a randomly generated long integer number between 0 and maximum.
Definition at line 42 of file SIG_Randomizer.cpp. Referenced by SIGEL_GP::SIG_GPOperations::crossOver(), SIGEL_GP::SIG_GPOperations::mutation(), and SIGEL_Program::SIG_ProgramLine::randomRobotinstruction(). |
|
Sets a new seed. The randomizer will be reinitialized."
Definition at line 17 of file SIG_Randomizer.cpp. Referenced by SIG_Randomizer(). |
|
Definition at line 65 of file SIG_Randomizer.h. |