Ruby Lowest Random Weight hashing