Sha256: 2f34e3cdfe567c51cda29ce673fe2ff31aa1ad3b2f7769b8c4452e94431fe278

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

Stored size: 266 Bytes

Contents

module CustomHelpers
  def rnd(text = nil)
    CustomHelpers.rnd(text)
  end

  # rnd -> 1,5,7
  # rnd('key') -> key 1, key 5, key 7 
  def self.rnd(text = nil)
    rnd = Random.rand(10000)
    if text.nil?
      rnd
    else
      "#{text}_#{rnd}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vxod-0.0.2 spec/support/random.rb