$zz = array();
$zzA = 0;
$i = 0;
while ($i <= 5){
$ok = 0;
while ($ok <= 0){
$zzA = rand(0, 7);
if (in_array($zzA, $zz){
zzA = rand(0, 7);
}else{
$zz[$i] = $zzA;
$ok = 1;
}
}
$i++;
}
Warum klappt dieser Code nicht. Ich suche jetzt schon lange an dem Problem finde es aber leider nicht.
Danke schon mal im voraus.
Lg Alex.