Method: Hash#random
- Defined in:
- lib/propr/random/hash.rb
#random(m = Propr::Random) ⇒ Object
2 3 4 5 6 |
# File 'lib/propr/random/hash.rb', line 2 def random(m = Propr::Random) m.bind(keys.random) do |k| m.unit([k, self[k]]) end end |