random number generation
Ulf Wiger
etxuwig@REDACTED
Wed Jun 6 11:47:11 CEST 2001
On Wed, 6 Jun 2001, Robert Virding wrote:
>There is no specific meaning the A1, A2, and A3 parameters, they are
>just three numbers which together make the seed. If you want to
>(re-)initialise a processes' seed to set (different) values then
>you must use seed/3.
A handy way of doing this is of course:
new_seed() ->
{A1,A2,A3} = erlang:now(),
random:seed(A1,A2,A3).
/Uffe
--
Ulf Wiger tfn: +46 8 719 81 95
Senior System Architect mob: +46 70 519 81 95
Strategic Product & System Management ATM Multiservice Networks
Data Backbone & Optical Services Division Ericsson Telecom AB
More information about the erlang-questions
mailing list