I\'m sure that there is a function for that. I just want to make a list of 1000 numbers, each one of them which should be random.
Pseudorandom number generator from crypto module works better crypto:rand_uniform(From, To). To generate a 1000-element list with random numbers between 1 and 10:
crypto:rand_uniform(From, To)
crypto:start(), [crypto:rand_uniform(1, 10) || _ <- lists:seq(1, 1000)].