Am 28.05.2007 um 21:44 schrieb Werner Laude:
hallo .
für ein simles Captcha benötige ich eine Zufallszahl zwischen 1 und 20
Nach 50 google Seiten bin ich aber nicht klüger..

gibt es in RoR nicht sowas wie rand(1..20)
Du meinst so was wie rand(20)? Google nach "ruby rand" bringt's auch gleich: http://dev.rubycentral.com/ref/ref_m_kernel.html#rand

Grüße, Niko.


--
___________________________________
niko dittmann
gottfr.-keller-str. 36
78467 konstanz
GERMANY

mail:         [EMAIL PROTECTED]
fon:                +49 7531 959531
fax:           +49 1212 512 852 148
aim:                         ende42
___________________________________


_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an