c# rng code example Example: generate a random number in c# Random rnd = new Random(); int value = rnd.Next(min,max); Console.Write(value);