Hash Randomizer in Ruby
In this guide you will learn how to use the hash randomizer.
Guide Tasks
- Read Tutorial
- Complete the Exercise
Summary
Build a class that can randomize the key and value mappings in a hash.
Exercise Description
"Define a class that will use the Hash Randomizer and value mappings."
Example Data
'srand 1' -> hash = { 'key_one' => 'value_one', 'key_two' => 'value_two', 'key_three' => 'value_three', 'key_four' => 'value_four', 'key_five' => 'value_five'
Real World Usage
This exercise will help you learn how to use randomized hashes in programs.