0

This line of code is not working.

    randnum = Double(arc4random() % Double(limit))

The error gives Binary operator '%' cannot be applied to operands of type 'UInt32' and 'Double'

How do I get the computer to select a random number between 0 and the limit picked by the user.

bneely
  • 9,083
  • 4
  • 38
  • 46

0 Answers0