Randoms the Decimal number. - CSharp System

CSharp examples for System:Random

Description

Randoms the Decimal number.

Demo Code

//  Copyright (c) 2014 IBT  All rights reserved.
using System.Text;
using System;/*  www.  j ava 2 s .co  m*/

public class Main{
        /// <summary>
        /// Randoms the number.
        /// </summary>
        /// <returns></returns>
        public static double RandomDecimal()
        {
            return random.NextDouble();
        }
}

Related Tutorials