random: performance improvements to random-integer and random-bits.