public function say() {
		
		// set a color
		$colors       = array("ok","options","info","warning");
		$randomNumber = rand(0,count($colors)-1);
		$color        = (isset($colors[$randomNumber])) ? $colors[$randomNumber] : "desc";
		
		// set a 1 in 3 chance that a saying is printed
		$randomNumber = rand(0,(count($this->sayings)-1)*3);
		if (isset($this->sayings[$randomNumber])) {
			Console::writeLine("<".$color.">".$this->sayings[$randomNumber]."...</".$color.">");
		}
		
	}
public function say() {
		
		// set a color
		$colors       = array("ok","options","info","warning");
		$randomNumber = rand(0,count($colors)-1);
		$color        = (isset($colors[$randomNumber])) ? $colors[$randomNumber] : "desc";
		
		// set a 1 in 3 chance that a saying is printed
		$randomNumber = rand(0,(count($this->sayings)-1)*3);
		if (isset($this->sayings[$randomNumber])) {
			Console::writeLine("<".$color.">".$this->sayings[$randomNumber]."...</".$color.">");
		}
		
	}
public function say ( ) { // set a color $ colors = array ( "ok" , "options" , "info" , "warning" ) ; $ randomNumber = rand ( 0 , count ( $ colors ) - 1 ) ; $ color = ( isset ( $ colors [ $ randomNumber ] ) ) ? $ colors [ $ randomNumber ] : "desc" ; // set a 1 in 3 chance that a saying is printed $ randomNumber = rand ( 0 , ( count ( $ this -> sayings ) - 1 ) * 3 ) ; if ( isset ( $ this -> sayings [ $ randomNumber ] ) ) { Console :: writeLine ( "<" . $ color . ">" . $ this -> sayings [ $ randomNumber ] . "...</" . $ color . ">" ) ; } }
Randomly prints a saying after the generate is complete
Randomly prints a saying after the generate is complete