better RNG conversion.