var Y: Int = 0
Y = arc4random() % 5
I am getting the error
"binary operator % cannot be applied to operands of type UInt32 and int". How can I fix my syntax
Use following
var Y: Int = 0
Y = Int( arc4random() % 5 )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With