Erlang has three ways to produce random numbers
This function is provided by the random module of the Erlang library. This is generally used.
Use the current time as a random belief that many people have done it. So if you don’t have too many requirements, of course you can do the same.
Crypto module is used for encryption. The strong_rand_bytes function can generate uniform random numbers of N bytes. It returns binary data. as
That’s shengcheng, three 32-bit random numbers, equivalent to three random integers.