/** * Fetch a random float value * * @access protected * @return float the random value between 0 and 1 */ protected function randFloat() { return $this->generator->generate(0, $this->generator->max()) / $this->generator->max(); //A number between 0 and 1. }
/** * Return the highets possible random value * * @access public * @return double */ public function max($value = null) { return $this->internal->max($value); }