Tiny cleanup for Kernel#rand

This removes some unneeded code duplication. It might slow down performance of
Kernel#rand by a little bit due to the extra statement branches that will be
processed but I doubt Kernel#rand was webscale in the first place.