in reply to Using 'each' to get random (key, value) pair from hash returns "uninitialized value"

The documentation for each describes this behavior.
  • Comment on Re: Using 'each' to get random (key, value) pair from hash returns "uninitialized value"