anjanesh
Newcomer
Hi
always returns the same value while it doesnt when using it as an object.
Is there some seed to take care of in #1 ?
C# .NET 2.0
Thanks
Code:
Console.WriteLine(new Random().Next(50));
Console.WriteLine(new Random().Next(50));
Console.WriteLine(new Random().Next(50));
Code:
Random r = new Random();
Console.WriteLine(nr.Next(50));
Console.WriteLine(nr.Next(50));
Console.WriteLine(nr.Next(50));
Is there some seed to take care of in #1 ?
C# .NET 2.0
Thanks