public function rand($min = 0, $max = 0)
	{
		if (!$max)
			$max = getrandmax();

		return $this->registry()->isRegistered(self::REGISTRY_RAND)
			? $this->lookup(self::REGISTRY_RAND)
			: rand($min, $max);
	}