return crypto.randomBytes(4).readUInt32LE() / 0x100000000
}
+/**
+ * Generate a cryptographically secure random number in the [0,1[ range
+ *
+ * @returns
+ */
+function secureRandomWithRandomValues () {
+ return crypto.getRandomValues(new Uint32Array(1))[0] / 0x100000000
+}
+
/**
* @param max
* @param min
generateRandomNumberArray,
generateRandomObject,
sleep,
- secureRandom
+ secureRandom,
+ secureRandomWithRandomValues
}