Optimized random number generators.