Maha

Maha

  • NA
  • 0
  • 328.7k

NP138 Random

Aug 26 2008 4:39 PM

Hi Guys

 

NP138 Random

 

In the following program output 1, 2, 3, 4, 5 and 6 is coming, 7 is not coming. Please explain the reason.

 

Thank you

 

using System;

 

class MainClass

{

    public static void Main()

    {

        Random ran = new Random();

 

        Console.WriteLine(ran.Next(1, 7));

    }

}


Answers (6)