vendredi 13 mai 2016

to show looping to two looping in random

i have looping problem, i want to show replay random to looping

Code:

            for ($i=0; $i <= 10; $i++) { 
            $result = $i;
            echo "$result";
            echo "<br>";
            }
    //----------------------------------------------
            echo "<hr width='100%'>";
    //----------------------------------------------
            $s=$result;
            $c=$result;
            $test=array_fill($s, $c, 0);
            $ts=microtime(true);

            for ($i=0; $i <= 10; $i++) { 
                $selection1=mt_rand($s, $c);
                $selection2=mt_rand($s, $c);

                echo "$selection1 and $selection1";
                echo "<br>";
            }

i want result: example result

Thanks ASHA




Aucun commentaire:

Enregistrer un commentaire