Quantcast
Channel: Tópicos
Viewing all articles
Browse latest Browse all 11336

Numero Aleatorio para depois fazer click num botao

$
0
0
Boa tarde, Para gerar os números aleatórios entre 1 e 9 podes fazer da seguinte maneira Random random = new Random(); int numero = random.Next(1, 9); Depois para puderes verificar se o número já saiu podes fazer um if. if (numero.Visible == false) { (gera novo numero aleatorio) }

Viewing all articles
Browse latest Browse all 11336

Trending Articles