Fastest pseudo-random number-generator: erlang:statistics(io) ?
Thu Nov 26 04:57:40 CET 2009
The new nif (native implemented functions) provide a great alternative
to generate random numbers and timestamps, much faster than the Erlang
The speed is about 1/2 to 1/3 of statistics(io), but still much faster
I simply used time(0) for the nif_now() and gettimeofday(&tv, NULL)
for the nif_random() functions.
nif's are a great addition to the language!
More information about the erlang-questions