Getting a *more* random value

Pupeno pupeno@REDACTED
Wed Mar 29 01:40:45 CEST 2006

I have an application where new processes are launched which calculate one 
random number between 0 and 512 and then do something with that number and 
I am currently using random:uniform(513) - 1 but that gives me the same random 
value for all the processes for each run of the application. I see that 
consecutive calls would get other numbers but I only need one.
How am I supposed to get a number that is not the same on every process ?
Thank you.
Pupeno <pupeno@REDACTED> (
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the erlang-questions mailing list