Skip to content

Instantly share code, notes, and snippets.

Embed
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