Random Integer - CSharp System

CSharp examples for System:Random

Description

Random Integer

Demo Code


using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from   w  w  w.j  a  v a 2 s .  c om*/

public class Main{
        public static int RandomInteger(int length)
        {
            return new System.Random().Next(100000);
        }
}

Related Tutorials