public function random($seed = null) { if (isset($seed)) { mt_srand($seed); } return $this->upper >= $this->lower ? mt_rand($this->lower, $this->upper) : mt_rand($this->upper, $this->lower); }