March 2009 - Posts

17
Comments

Random Number in C#, Be careful of some of the samples you find. by smehaffie

I recently came across this code on the internet for generating a random number with C#. 1: private static int RandomNumber( int min, int max) 2: { 3: Random random = new Random(); 4: return random.Next(min, max); 5: } The problem with this code is that...
Filed under: ,
More Posts