So I just started to learn how to code. I was making an app that lets you guess a number from 0-5 which the phone has randomly generated. When I run the app I get an error saying "thread 1: Breakpoint 1.4"Check Image Also some additional information which might be helpful:
I was getting an error before which stated "Cannot assign a value of type '(UInt32)' to a value of type 'String?'"
@IBOutlet weak var outputLbl: UILabel!
@IBOutlet weak var guessTxt: UITextField!
@IBAction func guessButton(_ sender: Any) {
let random = String(arc4random_uniform(6))
if guessTxt.text == random {
outputLbl.text = "You guessed the right number"
} else {
outputLbl.text = "You guessed the wrong number"
}
}