Get the latest tech news

Perfect Random Floating-Point Numbers


When I recently looked at the state of the art in floating point random number generation, I was surprised to see a common procedure in many programming …

When I recently looked at the state of the art in floating point random number generation, I was surprised to see a common procedure in many programming languages and libraries that is not really a floating-point algorithm: Adding and subtracting large integers that reach the exponent field is a fast way to multiply and divide floating-point numbers, provided you handle the boundary conditions. This is the first efficient algorithm for generating random uniform floating-point numbers that can access the entire range of floating point outputs with correct probabilities.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Point Numbers

Point Numbers