andrew@frip.WV.TEK.COM (Andrew Klossner) (07/15/89)
Any program with a formula like ((rand()%100 < 30) ? 10:11); is going to behave oddly. The low order bits of the numbers returned by rand() are not "random" in the sense that gamesters mean. Either use random() instead, or use something like (((double)rand()/2147483648.0 < 0.30) ? 10:11); so that you don't discard the significant bits. -=- Andrew Klossner (uunet!tektronix!frip.WV.TEK!andrew) [UUCP] (andrew%frip.wv.tek.com@relay.cs.net) [ARPA]