Skip to content

Instantly share code, notes, and snippets.

@rizafahmi
Created January 16, 2014 07:26
Show Gist options
  • Save rizafahmi/8451050 to your computer and use it in GitHub Desktop.
Save rizafahmi/8451050 to your computer and use it in GitHub Desktop.
Using Elixir Module Random in Elixir
defmodule Randomize do
def random(number) do
:random.uniform(number)
end
end
IO.inspect Randomize.random(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment