src/Malenki/Math/RandomComplex.php
public function theta($float_min, $float_max)
    {
        self::checkOrder($float_min, $float_max);

        if ($this->r || $this->i) {
            throw new \RuntimeException('You cannot set theta value, because algebraic form is in use.');
        }

        $this->theta = new \stdClass();
        $this->theta->min = $float_min;
        $this->theta->max = $float_max;

        return $this;
    }
public function theta($float_min, $float_max)
    {
        self::checkOrder($float_min, $float_max);

        if ($this->r || $this->i) {
            throw new \RuntimeException('You cannot set theta value, because algebraic form is in use.');
        }

        $this->theta = new \stdClass();
        $this->theta->min = $float_min;
        $this->theta->max = $float_max;

        return $this;
    }
Sets min and max value for random theta angle

@throw \RuntimeException If this is called into algebraic context.
@param  float         $float_min
@param  float         $float_max
@access public
@return RandomComplex