Weight-based random sampling

I side with you. I see @peerreynders’s point but I’ve done my exercises and re-implemented most of Enum.

For such problems, start with idiomatic Elixir code and only go for hand-rolled algorithms if performance is of utmost importance.