jeudi 4 août 2016

How to generate a random number in Elixir?

For database seeding purposes, I need to generate a random number.

I found this random/1 function, but it expects a list of numbers to be generated and passed to it.

http://ift.tt/2axn70h

Is that the only way to get a random number?




Aucun commentaire:

Enregistrer un commentaire