Random Decimal - CSharp System

CSharp examples for System:Random

Description

Random Decimal

Demo Code


using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//ww  w  .  j a v  a2s. c om

public class Main{
        public static decimal RandomDecimal(int length, int precision)
        {
            return new System.Random().Next(100000);
        }
}

Related Tutorials