Initializing random seeds
Wed Feb 8 16:06:18 CET 2006
Daniel Luna wrote:
> Yes. Patience is the key. Try to generate just one more number and they
> should be different.
> uniform() = ... + A3/30323
> uniform(N) = trunc(uniform() * N) + 1.
> So for a small difference in A3 you will have the same random number the
> first time around. Given time though (just once more should be enough),
> these numbers will separate[*].
Yes! I saw the source code in random.erl, and maybe my solution of using
an ad hoc process for random number generation is the key. Any other hint???
Eng. Corrado Santoro, Ph.D.
University of Catania - Engineering Faculty
Department of Computer Science and
Viale A. Doria, 6 - 95125 CATANIA (ITALY)
Tel: +39 095 7382380
+39 095 7387035
+39 095 7382365
+39 095 7382364
Fax: +39 095 7382397
Personal Home Page:
NUXI Home Page:
More information about the erlang-questions