dimanche 29 janvier 2017

Why can't I generate random number between 0 and 1 in C#?

I'm getting 0 every single time, why is this? Can I not start from 0?

Random random = new Random();
int test = random.Next(0, 1);
Console.WriteLine(test);
Console.ReadKey();




Aucun commentaire:

Enregistrer un commentaire