hi leuts,
ich erzeuge zufallszahlen von 1-4 allerdings soll nie 3 kommen. es kommt aber andauernd 3. was paßt hier nicht?
do {
srand((double)microtime()*1000000);
$zf_zahl = rand(0,4);
} while ($zf_zahl != 3);
echo "wert=$zf_zahl";
 
							
						
					ich erzeuge zufallszahlen von 1-4 allerdings soll nie 3 kommen. es kommt aber andauernd 3. was paßt hier nicht?
do {
srand((double)microtime()*1000000);
$zf_zahl = rand(0,4);
} while ($zf_zahl != 3);
echo "wert=$zf_zahl";
 
							
						 
          
 $PHP resource 4ever$
$PHP resource 4ever$ 
							
						 
  
							
						
Kommentar