random number generators and tests