public Individual CreateIndividual(List <Individual> winners) { int index = (int)RandomExt.NextLong(winners.Count); Individual winner = winners[index]; return(CreateIndividual(Evaluator.GetRandomlyEvolvedEvaluator(winner.Evaluator, true), winner)); }
private static int GetRandomAlphaIndex(bool excludeExpensive) { while (true) { int result = (int)RandomExt.NextLong(AlphaCount); if (excludeExpensive && expensiveAlphas.Contains(result)) { continue; } return(result); } }