Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to generate a random number in c#

using System;
public class Program {
   public static void Main() {
      Random r = new Random();
      int genRand= r.Next(10,50);
      Console.WriteLine("Random Number = "+genRand);
   }
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #generate #random #number
ADD COMMENT
Topic
Name
2+5 =