Created
March 26, 2016 04:12
-
-
Save klgraham/ff96f7c422a5b181db8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func randomDouble() -> Double { | |
return Double(arc4random()) / Double(UInt32.max) | |
} | |
let uniform = Distribution<Double>(get: randomDouble) | |
uniform.sample(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment