Why is that? I mean when I order it to make random numbers without putting them into the Pythagorean theorem then it just gives me different random numbers, but the moment I put in the lines for Pythagorean theorem then it switches back to giving the same numbers.

Here's the code:

Random random01 = new Random(); double Side_a = random01.Next(1, 100); double Side_b = random01.Next(1, 100); double c = Math.Pow(a, 2) + Math.Pow(b, 2); Console.WriteLine(Side_a,Side_B)/>/>; Console.WriteLine("Lenght of the hypotenuse is {0}", c); Console.ReadLine();