Created
January 16, 2014 07:26
-
-
Save rizafahmi/8451050 to your computer and use it in GitHub Desktop.
Using Elixir Module Random in Elixir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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