Newsgroups: comp.parallel.pvm
From: sscott@nimitz.mcs.kent.edu (Stephen Scott)
Subject: Re: Rand number advise on PVM
Organization: Kent State University
Date: 18 Sep 1995 13:07:23 GMT
Message-ID: <43jqub$440@ns.mcs.kent.edu>

In article <43f922$19gk@bigblue.oit.unc.edu>, kahn@physics.unc.edu (Dan Kahn) writes:
|> I need to do use random numbers and I want to run my program on
|> several CPUs using PVM (on Cray t3d). 
|> 
|> It occured to me that if I use pseudo random numbers like I would in a
|> single CPU environment each CPU will simple generate the same sequence
|> of numbers.
|> 
|> Is there a prefered way (probably some type of seeding) to get each
|> CPU to generate a different sequence of numbers?
|> 
|> Thanks,
|> --dan
|> 
|> 
|> -- 


Simple technique is to use your seed number along with some
derivation off of the unique tid of each process and if you want
to complicate somewhat - include the time at each process.

stephen

