This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
rand /
| name | age | message | |
|---|---|---|---|
| |
README | Thu Jul 02 14:31:46 -0700 2009 | |
| |
init.rb | Thu Jul 02 12:26:38 -0700 2009 | |
| |
lib/ | Thu Jul 02 14:50:07 -0700 2009 |
README
Plugin Details -------------- This plugin overrides the #rand method provided to Array by Rails' ActiveSupport. It can be used like the method it overrides to return a single value, without passing in a parameter, but if you specify an integer value, a random array of that size will be returned. Examples -------- >> [0,1,2,3,4].rand => 1 >> [0,1,2,3,4].rand(2) => [4, 0] >> [0,1,2,3,4].rand(2) => [1, 2] >> [0,1,2,3,4].rand(10) => [1, 4, 3, 0, 2] >> [0,1,2,3,4].rand(10) => [2, 0, 1, 4, 3] >> [0,1,2,3,4].rand(-5) => nil License ------- This plugin is available under the MIT license. Authors ------- Thomas Mango http://slicedsoftware.com Milan Iliev http://github.com/milaniliev







