A better rand()!

You may want to consider using the random number generator from Angband or
Nethack. Look at the source file z-rand.c in Angband.

Angband link: http://www.thangorodrim.net/