Group Group Group Group Group Group Group Group Group

How to call a @objc from viewdidload method a random number of times

I want to be able to call the @objc func medal() a number of random times from the main method. The problem is when I place medal() in the viewdidload method nothing is printing. So the func is not being called I know if It did not have @objc in the func name it would work. But I would like to keep the objc to also use the code for a button call. I would also like to call medal() a random number of times.

 @objc func medal(){
Print("HI")
   }

   override func viewDidLoad() {
       super.viewDidLoad()
       medal()
 }