If you are unsatisfied with the system random number
generator, use the following:

unsigned long random_seed = 1;

unsigned random(void) {
  random_seed *= 2147001325;
  random_seed +=  715136305;
  return (unsigned) (random_seed>>16);
}

void srandom(unsigned long seed) {random_seed = seed;}

Yes, it was checked with spectral tests, and yes,
it passed them.


=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

Reply via email to