using System;
// https://dotnetfiddle.net/NkNg6S
// Random Number Generator
// dlivingstone, 2020
// Simple C# Program that picks a random number from 1 to 10 and displays it on console
public class Program
{
public static void Main()
// To create random numbers in C# we need to use a random number generator
// This line will create one, with the identified 'randomGenerator'
Random randomGenerator = new Random();
// Now, pick a random number
// Next(10) will pick a number between 0 and 9. We add 1 to make it in the range 1 to 10
int number = randomGenerator.Next(10) + 1;
// Now print the number
Console.WriteLine("Random Number is:" + number);
}