Module StringMixin
In: lib/rand.rb

Methods

rand  

Public Instance methods

Generate a string of random characters of length len taken from a pool of characters that don‘t require URL escaping.

[Source]

    # File lib/rand.rb, line 10
10:   def rand(len)
11:     return Array.new(len){(@@pool[Kernel.rand(@@range)]).chr}.join.chomp
12:   end

[Validate]