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
and after random i want cross looping Example result
#including completion of a genetic algorithm
</div>