> Overflow could be a problem in this algorithm? > If x became near MAX_INT, what happens on the next > multiplication ? That's a congruential generator with modulus MAX_INT. The whole point is to allow and exploit overflow. --lhf