Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let getRandomChromosome (random: System.Random) =
{
age = 0
genes = Seq.init 7 (fun _ -> getRandomGene random) |> Seq.toArray
}
let getRandomGene (random: System.Random) = (random.NextDouble() * 2.0) - 1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.