In theory, the random functions in this package can also output 1.
This package is included in 'randplus'.
const random = require('@randplus/0to1');
console.log(random.versions); // ['v1', 'v2']
console.log(random()) // Use latest random function.
console.log(random(1)); // Use v1 random function.
console.log(random('1')); // Use v1 random function.
console.log(random('v1')); // Use v1 random function.