Avoid modulo bias in Random::randomUInt().

Generate random numbers in a loop until we get one that is below the largest number where rand%limit==0.