code: public function getFloat($min = 0, $max = 10000, $precision = 2)
  	{
  		$num = rand($min, $max) . '.' . $this->getString('number', $precision);
  
  		if ($num > $max) {
  			// In case adding the additional decimal points makes us exceed the max.
  			$num = $max;
  		}
  		
  		return round($num, $precision);
  	}
docs: Generate a float number between $min and $max, with precision $precision
  
  @param int $min
  @param int $max
  @param int $precision
  @return float