Litle.Sdk.RandomGen.NextInt C# (CSharp) Method

NextInt() public static method

public static NextInt ( ) : int
return int
        public static int NextInt()
        {
            Random inst = _local;
            if (inst == null)
            {
                byte[] buffer = new byte[8];
                Global.GetBytes(buffer);
                _local = inst = new Random(BitConverter.ToInt32(buffer, 0));
            }

            return _local.Next();
        }