Initial commit
This commit is contained in:
9
Sources/ECGSynKit/RandomNumberGenerator.swift
Normal file
9
Sources/ECGSynKit/RandomNumberGenerator.swift
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user