[erlang-questions] process dictionary, anyone?
Toby Thain
toby@REDACTED
Sat Apr 28 01:04:17 CEST 2007
On 27-Apr-07, at 5:10 AM, Luke Gorrie wrote:
> ...
> Here is the way I've learned to get a "random enough that the
> programmer can't guess the answer" number:
>
> {A,B,C} = now(),
> random:seed(A,B,C),
The potential problems with this are obvious... aren't they?
--T
> random:uniform(N)
>
> but that's from grep'ing around to see how Tony and Klacke do it.
...
More information about the erlang-questions
mailing list