DEV Community

Sushant Bajracharya
Sushant Bajracharya

Posted on

Generate n digit random number in elixir

To generate n digit of random number you can do

Enum.random(10,20)

It will generate 2 digit number between 10 and 20

Top comments (0)