public static CharacterGene of ( final CharSeq validCharacters ) { return new CharacterGene ( validCharacters , RandomRegistry . getRandom ( ) . nextInt ( validCharacters . length ( ) ) ) ; }
Create a new CharacterGene with a randomly chosen character from the set of valid characters .