Thread Zufallszahlen generieren
(43 answers)
Opened by [E|B] at 2005-09-04 16:55
[quote=vayu,14.09.2005, 13:28]nö 0 - 100 sind 101 werte also ist der höchste index 100 :)[/quote]
das stimmt, aber im code hieß es ja: man beachte das $i<$maxNumber also 100 werte! rand @numbers ist also völlig korrekt Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: ![]() ![]() |