public static < A > EnumGene < A > of ( final ISeq < ? extends A > validAlleles ) { return new EnumGene <> ( RandomRegistry . getRandom ( ) . nextInt ( validAlleles . length ( ) ) , validAlleles ) ; }
Return a new enum gene with an allele randomly chosen from the given valid alleles .