maraigue/multiset — pull request #2 by dstrelau (2014-04-10 22:28:15+00:00)
Title: Correct #rand to return nil when set is empty

Hi, I'm not sure if the current behavior of `Multiset#rand` while empty is intended, but it seemed like a bug to me. This changes the behavior to return `nil` if the set is empty, mirror `Array#rand` with an empty array.

Before:
```ruby
>> Multiset.new.rand
=> {}
```

After:
```ruby
>> Multiset.new.rand
=> nil
```