changed fast_rand to use constants from Knuth