/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function generate_numbers($min, $max, $anz) { for($x = 0; $x < $anz; $x++) { $erg[] = $array[$i]; } return $erg; } // 5 eindeutige Zahlen im Bereich von 1 bis 100 ermitteln $zufalls_array = generate_numbers(1, 100, 5);
URL: http://www.php-faq.de/q/q-code-zufallszahlen.html
Comments
