samedi 5 mai 2018

Initializing the Random Object returns the same value

I tried to use the "Next(int)" method contained in the System.Random class like this:

new Random().Next(500);

When I loop through this method 30 times, it returns the same value over and over, what is going on when I use this syntax?




Aucun commentaire:

Enregistrer un commentaire