Files
EcgSynKit/Sources/ECGSynKit/RandomNumberGenerator.swift
2024-11-04 10:48:09 -06:00

10 lines
214 B
Swift

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