Random Number Generator in C#

Generate random numbers whenever program is compiled.

Source code :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeCry
{
    class Program
    {
        static void Main(string[] args)
        {
            //define the range
		    int min = 1;
		    int max = 100; 
		    
            Random rnd = new Random();
            Console.Write(rnd.Next(min, max));
        }
    }
}


Output :

88
11
26
24
//Random Number

Output :


                

Comments :