I apologize for the derail. I hope it is at least interesting
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.
I apologize for the derail. I hope it is at least interesting
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.