Random key from Ruby Hash


Category:
Scripts
Ruby
Requirements:
Seller:
Price:
-
System:
Rating:
4.2
License:

Description - Random key from Ruby Hash



I needed a Ruby Hash class that could Extract a Random Key from the keys that have not been extracted before. Plus that the class should be re-entrant...I found baby`s class, but it was not working (at least not in Ruby 1.8.x). I made it work (slight changes), and I added the keys_not_used to make it work FASTER (baby`s random would cycle almost forever on large lists). But I would say all credit should go to the original author, who did all the hard work.



More in Ruby-Random key from Ruby Hash

Baby`s Ruby Hash Key From Ruby