@Override
	public EnumGene<A> newInstance() {
		return new EnumGene<>(
			RandomRegistry.random().nextInt(_validAlleles.length()),
			_validAlleles
		);
	}
Return the index of the allele this gene is representing.

@return the index of the allele this gene is representing
jenetics/src/main/java/io/jenetics/EnumGene.java