Skip to content

Instantly share code, notes, and snippets.

Created February 7, 2018 10:52
What would you like to do?
let randomDouble: Double = (-0.3...0.9).random
let randomCGFloat: CGFloat = (-0.9...0.9).random
let randomInt: Int = (-9...3).random
let randomUInt: UInt = (3...9).random
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment