Inclusive Math.random in JavaScript

Produce a random floating point number within the inclusive range of [0, 1]

The following implementation preserves the uniformity of the built-in Math.random function.

function randomInclusive() {
    return Math.floor(Math.random() * 0x20000000000000) / 0x1fffffffffffff
}