From: Leamy, M. J. <mj...@mi...> - 2006-03-03 15:47:45
|
The one unusual thing I use is OpenMap, and I have been able to pinpoint the location at which random numbers become unsychronized to a loop I have which generates random (x,y) integer pairs (representing OpenMap pixel coordinates) and searches to see if those pairs lie inside of a shapelayer attribute - in this case a census tract. Before doing this, my random numbers all agree. I do this to create house locations, office locations, etc. It will vary from run to run when it happens, and it doesn't always happen (!), but the random number generator will no longer be synced sometime after computing (x,y) pairs. If anything, this points to OpenMap. It seems like sometimes the valid (x,y) pairs inside of a shapelayer attribute can be slightly different from run to run. What do you think? Thanks! Mike. =20 -----Original Message----- From: Tom Howe [mailto:tur...@gm...]=20 Sent: Friday, March 03, 2006 10:38 AM To: Leamy, Michael J. Cc: Rick Riolo; Laszlo Gulyas; rep...@li... Subject: Re: [Repast-interest] Nonrepeatable Results - Random Number Generation Neither ArrayLists, nor repast's threading should be causing this.=20 I'm afraid I'm not quite sure where to point you at this point, but I can say that I have, on numerous occasions, faced similar situations and it can be quite a challenge to find the cause. Which parts of repast are you using other than the scheduler? -Tom On 3/3/06, Leamy, Michael J. <mj...@mi...> wrote: > How about ArrayLists? They shouldn't be a problem? I use a lot of > them. Mike. > |