Getting a *more* random value
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 ?
Pupeno <> (http://pupeno.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the erlang-questions