James Umbanhowar wrote:
> Each call to the random number generator takes on the order of a minute 
> and a half.  I determined this from doing a random class or race 
> selection.  This problem makes generating stats take several hours.  


Ouch!

randint1( ) is invoked at l.210 in birth.c and defined in z-rand.[hc],
ultimately via Rand_div( ), which is cycled by LCRNG, z-rand.c l.51:

/* 
 * Random Number Generator -- Linear Congruent RNG 
 */
#define LCRNG(X)        ((X) * 1103515245 + 12345) 


Without looking real close, I guess they might have been assuming a
32bit system, so it's taking a lot longer to hit (r<m) at l.177.  Can
you get your hands on an ia64 to compare against?  It should have the
same problem.

Why don't they just use rnd() and be done with it?  It's just a fantasy
adventure game for goodness sake.

Drew



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to