public function addRandomValues($SerieName = "Serie1", array $Options = [])
    {
        $Values = isset($Options["Values"]) ? $Options["Values"] : 20;
        $Min = isset($Options["Min"]) ? $Options["Min"] : 0;
        $Max = isset($Options["Max"]) ? $Options["Max"] : 100;
        $withFloat = isset($Options["withFloat"]) ? $Options["withFloat"] : false;

        for ($i = 0; $i <= $Values; $i++) {
            $Value = $withFloat ? rand($Min * 100, $Max * 100) / 100 : rand($Min, $Max);
            $this->addPoints($Value, $SerieName);
        }
    }
public function addRandomValues($SerieName = "Serie1", array $Options = [])
    {
        $Values = isset($Options["Values"]) ? $Options["Values"] : 20;
        $Min = isset($Options["Min"]) ? $Options["Min"] : 0;
        $Max = isset($Options["Max"]) ? $Options["Max"] : 100;
        $withFloat = isset($Options["withFloat"]) ? $Options["withFloat"] : false;

        for ($i = 0; $i <= $Values; $i++) {
            $Value = $withFloat ? rand($Min * 100, $Max * 100) / 100 : rand($Min, $Max);
            $this->addPoints($Value, $SerieName);
        }
    }
public function addRandomValues ( $ SerieName = "Serie1" , array $ Options = [ ] ) { $ Values = isset ( $ Options [ "Values" ] ) ? $ Options [ "Values" ] : 20 ; $ Min = isset ( $ Options [ "Min" ] ) ? $ Options [ "Min" ] : 0 ; $ Max = isset ( $ Options [ "Max" ] ) ? $ Options [ "Max" ] : 100 ; $ withFloat = isset ( $ Options [ "withFloat" ] ) ? $ Options [ "withFloat" ] : false ; for ( $ i = 0 ; $ i <= $ Values ; $ i ++ ) { $ Value = $ withFloat ? rand ( $ Min * 100 , $ Max * 100 ) / 100 : rand ( $ Min , $ Max ) ; $ this -> addPoints ( $ Value , $ SerieName ) ; } }
Add random values to a given serie
@param string $SerieName
@param array $Options
Add random values to a given serie