Generando un numero random 2.4

CODIGO 1 // 2 // ViewController.swift 3 // PrimeraAppCF 4 // 5 // Create by Luis Enrique Hernandez Celaya on 04/06/17. 6 // Copyright 2017 Codigo Facilio. All rights reserved. 7 // 8 import UIK: t 9 class ViewController: UIViewController { 10 11 @IBOutlet weak var numbertxt: UITextFiel ! 12 @IBOutlet weak var intentoslbl: UILabel ! 13 @IBOutlet weak var mensajelbl: UILabel ! 14 var random = " " 15 @IBAction func validar( sender: Any ){ 16 set Values () 17 } 18 override func view DidLoad(){ 19 super viewLoad () 20 } 21 func setValues() 22 random = String ( arch4randon_uniforn ( 10 )) 23 print ( random ) 24 } 25 }