elixir-lang/elixir — pull request #2919 by jw2013 (2014-12-05 09:23:08+00:00)
Title: Enum.sample/1 should raise if the list is empty

This fix the Enum.sample/1 issue discussed in #2916.

And addresses @lexmag's comment in closed PR #2917.