Seed Random - CSharp System

CSharp examples for System:Random

Description

Seed Random

Demo Code


using System.Text;
using System.Security.Cryptography;
using System;//from   w  w w.  j av  a  2s .c om

public class Main{
        private static Random SeedRandom()
        {
            return new Random(Guid.NewGuid().GetHashCode());
        }
}

Related Tutorials