You can call Erlang’s rand
module from Elixir code seamlessly.
random_number = :rand.uniform(n)
Will give a random number from 1 <= x <= n
You can call Erlang’s rand
module from Elixir code seamlessly.
random_number = :rand.uniform(n)
Will give a random number from 1 <= x <= n