src/Generator.php
public function getBool($true = true, $false = false, $likely = 2)
	{
		$i = $this->getInteger(1, 100);
		
		if ($i % $likely == 0) {
			return $true;
		} else {
			return $false;
		}
	}
public function getBool($true = true, $false = false, $likely = 2)
	{
		$i = $this->getInteger(1, 100);
		
		if ($i % $likely == 0) {
			return $true;
		} else {
			return $false;
		}
	}
public function getBool ( $ true = true , $ false = false , $ likely = 2 ) { $ i = $ this -> getInteger ( 1 , 100 ) ; if ( $ i % $ likely == 0 ) { return $ true ; } else { return $ false ; } }
Generate a boolean. Use the parameters to custom the ressponse to be true/false, 1/0, Yes/No, etc.

@access public
@param mixed $true Value that should be returned if true (default: true)
@param mixed $false Value that should be returned if false (default: false)
@param mixed $likely How likely is it (1-10) the result will be true?  1 = Always, 10 = Almost never.
@return mixed the result.

@codeCoverageIgnore
Generate a boolean . Use the parameters to custom the ressponse to be true / false 1 / 0 Yes / No etc .