Module Random
In: lib/more/facets/random.rb

Random

Randomization core extension methods.

This library extends Array, String and Hash with randomization methods. Most of the methods are of one of two kinds. Either they "pick" a random element from the reciever or they randomly "shuffle" the reciever.

The most common example is Array#shuffle, which simply randmomizes the order of an array‘s elements.

  [1,2,3].shuffle  #=> [2,3,1]

The other methods do similar things for their respective classes.

Methods

Classes and Modules

Module Random::Array
Module Random::Hash
Module Random::Object
Module Random::Range
Module Random::String

External Aliases

rand -> number
  alias to Kernel method rand.

Public Class methods

[Validate]