Improved random number generation mechanisms