crossover Uniform
fun <T> crossoverUniform(value1: MutableList<T>, value2: MutableList<T>, chance: Double, random: Random)
Executes a uniform crossover that modify in-place the input chromosomes. The attributes are swapped according to the chance probability.
Parameters
value1
value of first child chromosome
value2
value of second child chromosome
chance
probability for index swapping