Ad
  • Custom User Avatar
    1. Only in Ruby 2.4, and (at time of writing) Codewars uses Ruby 2.3.0
    2. Yep, this method will never be exact. The distribution will always sum to a power of two, which obviously can't ever be evenly divisible by 3. I probably can't really count this as a solution because it will only pass a not-very-stringent randomness test.