Quantcast
Channel: Como gerar um número aleatório em C#
Browsing all 3 articles
Browse latest View live

Como gerar um número aleatório em C#

Valeu !!

View Article



Como gerar um número aleatório em C#

Existe uma classe pra isso, Gabriel. A classe Random (documentação).Exemplo:Random rand = new Random(); Console.WriteLine(rand.Next(1, 10)); // Gera um número entre 1 (inclusive) e 10 (exclusivo)PS:...

View Article

Como gerar um número aleatório em C#

Sempre quis saber como fazer isso (principalmente em C), mas nunca consegui, se alguém souber me ajuda ai por favor. De preferência de modo manual , mas caso haja um método que retorne ajuda da mesma...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images