Generar un número random
Import ulkit Class viewcontroller : ulview controller { @iBoutlet weak var number txt : uitext Filled! @iBoutlet weak var intentos bliu label! @iBoutlet weak var mensajes ibii ui label! Var random = “” @iBaction func validar (-sender. Am,){ Set values () } Overide func view didluad (){ Superview Didload () //Do any additional setup affter loading The view typically from a nid } Func set values () { Randoms = string (arg random - uniform(10)) Print (random) } }