Initializing random seeds

Corrado Santoro <>
Wed Feb 8 16:06:18 CET 2006


Hi Daniel,

Daniel Luna wrote:
> Yes. Patience is the key. Try to generate just one more number and they 
> should be different.
>  [cut]
> 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???

--Corrado

-- 
======================================================
Eng. Corrado Santoro, Ph.D.

University of Catania - Engineering Faculty
Department of Computer Science and
Telecommunications Engineering
Viale A. Doria, 6 - 95125 CATANIA (ITALY)

Tel: +39 095 7382380
      +39 095 7387035
      +39 095 7382365
      +39 095 7382364

VoIP: sip:

Fax: +39 095 7382397

EMail: 
Personal Home Page:
             http://www.diit.unict.it/users/csanto

NUXI Home Page:
             http://nuxi.diit.unict.it
======================================================




More information about the erlang-questions mailing list