Improves random number generation