Random rand = new Random(10);
Console.WriteLine(rand.Next(100));
These couple of lines of code always gives 95 as the output. And when I make the parameter value of the constructor in the first line "8", then the code always gives 90 as the output. Can anybody point to me why it behaves like this ?
P.S: I'm guessing it's something to do with what the parameter value does to the object of the Random
class, but a concrete insight into the behavior would be highly appreciated.