This commit is contained in:
2024-11-03 17:48:59 -06:00
parent 583b9234fd
commit 3b1a207b3f
10 changed files with 262 additions and 255 deletions

View File

@@ -0,0 +1,9 @@
extension RandomNumberGenerator {
mutating func nextDouble() -> Double {
Double(next() >> 11) * 0x1.0p-53
}
mutating func nextFloat() -> Float {
Float(next() >> 40) * 0x1.0p-24
}
}