Tests quality of random number generators