0

How do I make something happen randomly in C#

24th Apr 2020, 8:38 PM
Johnathan Blakeney
Johnathan Blakeney - avatar
2 odpowiedzi
+ 1
Random rand = new Random(); int one_or_zero = rand.Next(2); double less_than_one = rand.NextDouble();
24th Apr 2020, 8:47 PM
Tibor Santa
Tibor Santa - avatar
+ 1
Thanks
24th Apr 2020, 8:48 PM
Johnathan Blakeney
Johnathan Blakeney - avatar