Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

1 rand resources

Create a random number in Ruby
Friday, 19 March 2010 16:48
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

 


Taxonomy by Zaragoza Online