public function get()
    {
        if ($this->range->as_integer) {
            return mt_rand($this->range->min, $this->range->max);
        } else {
            return mt_rand(0, mt_getrandmax()) / mt_getrandmax();
        }
    }