/** * Constructor... * * @param \r8\Seed $seed The seed to feed into the random number generator */ public function __construct(\r8\Seed $seed) { if (!extension_loaded('bcmath')) { throw new \r8\Exception\Extension("BC Math extension required"); } $this->num = abs($seed->getInteger()); // Throw away the first value $this->nextInteger(); }