random number 1-6 c# code example Example: c# random number int random_number = new Random().Next(1, 10) // Generates a number between 1 to 10