Elixir port of Python 3 random module.