How to create a random Uniform Distribution between (but excluding) 0 and 10?

I apologize for the derail. I hope it is at least interesting :slight_smile:

I would take trailing_zeros(u) as exponent (that is exponentially distributed, as required), shift right by 9 bit and fill in the sign and exponent.