/**
  * @param CharacterClassNode $node
  *
  * @return string
  */
 protected function printCharacterClassNode(CharacterClassNode $node)
 {
     $range = range($node->getStart()->getValue()->getValue(), $node->getEnd()->getValue()->getValue());
     return $range[mt_rand(0, count($range) - 1)];
 }
 /**
  * @param CharacterClassNode $node
  *
  * @return \DOMElement
  */
 protected function formatCharacterClassNode(CharacterClassNode $node)
 {
     $xmlNode = $this->createXmlNode($node->getName());
     $xmlNode->appendChild($this->formatNode($node->getStart()));
     $xmlNode->appendChild($this->formatNode($node->getEnd()));
     return $xmlNode;
 }