Package org.opt4j.common.random


package org.opt4j.common.random

Provides the classes for the random number generators.

Meta-heuristic algorithms rely on a certain degree of randomness. This package provides an interface (an abstract class) Rand for random number generators. The default random number generator is the MersenneTwister.

This interface should be used in all operators and algorithms such that an optimization run with the same seed of the random number generator should produce the same result. Keep in mind that this reproducibility might be violated by, e.g., multi-threading or non-deterministic objects like Sets.