random number generation

Robert Virding rv@REDACTED
Wed Jun 6 11:25:10 CEST 2001

The seed to the random number generator actually consists of three
(positive) numbers.  These can be set to the default values using
seed/0 and to specific numbers using seed/3.  Both functions return
the current seed.

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.


Salvador Alcaraz <salcaraz@REDACTED> writes:
>Hello, friends, from Spain:
>I am using  random module and export functions 
>I need to initialize same process with diferent seeds.
>Should I have to use random:seed/3 function???
>seed(A1,A2,A3) -> ran()
>Which is the meaning of A1, A2 , A3 parameters??
>Thank you in advance
>Salvador Alcaraz Carrasco
>Division de Ingenieria Telematica
>Dpto. de Fisica y Arquitectura de Computadores
>Universidad Miguel Hernandez

More information about the erlang-questions mailing list