Home
Mac
Finder
Tips & Tricks
Linux
Web Server
Plesk
Windows
Server
MySQL
Joomla
General
Virtuemart
News Feeds
Joomla Community
Joomla Events
HowtoForge
Apple
Apple - Support
Perishable Press
Freak-Bootique
DZone
Gizmodo
Downloads
Contact
Code
PHP
Create a random number in Ruby
Friday, 19 March 2010 16:48
value
-
module
-
kernel
-
[ruby-docorg]
-
1 rand resources
Return a value from 0 to 5:
rand(6)
Return a value between 0 and 1:
rand
Resources:
-
Module: Kernel
[ruby-doc.org]
Read more:
http://feeds.dzone.com/~r/dzone/snippets/~3/aIaVxWHYbAE/10611
CodersResource.com
Scroll To Top