in reply to Re: Non-deterministic Testing (srand)
in thread Non-deterministic Testing

But then you aren't testing the randomness of your function anymore. The OP wants to test whether about 20% of the tests return unpredictable results. By setting the seed of srand, or supplying the return values of rand as others suggest, you're no longer testing what you should be testing.
  • Comment on Re^2: Non-deterministic Testing (srand)