Swift: Get Random Boolean
This function will help you get a random true or false boolean value.
func randomBool() -> Bool {
return arc4random_uniform(2) == 0 ? true : false
}
This function will help you get a random true or false boolean value.
func randomBool() -> Bool {
return arc4random_uniform(2) == 0 ? true : false
}