swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Random number generators. advice?


From: Paul E Johnson
Subject: Random number generators. advice?
Date: Wed, 21 Feb 2001 10:40:35 -0600

I'm trying to make two "similar" models, one in obj-c and one in java,
generate the exact same results.  In order to do that, I need the exact
same random numbers at the start, and I'm having trouble because one
program makes draws on the random generator more than the other, so the
numbers for some variables don't match up. 

As a result, I need to create three or four different generator objects
which can be called at just the right time so that the numbers will be
identical in the two simulations.  At random, I chose to add the
generator C3MWCgen and a couple others.  On the objc side that's OK, but
there is no Java Swarm interface for that one.

So then I thought I might as well just ask the experts which generators
to use, if one needs separate generators to keep random numbers matched
up.

Advise me please.
-- 
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]