I know in Swift one way of generating a random number is:
let getXOrY = random(2)
However I am getting the error:
Type '()' does not conform to protocol 'IntegerLiteralConvertible'
I have also tried:
let getXOrY = arc4random(2)
and it creates the same error.
I am not sure why this is happening. In other responses on this site it seemed to be as easy as that one line of code. Also, please explain the error means. Thank you.