随机唯一不重复

        public static int GetRandomSeed()
        {
            byte[] bytes = new byte[4];
            System.Security.Cryptography.RNGCryptoServiceProvider rng = new System.Security.Cryptography.RNGCryptoServiceProvider();
            rng.GetBytes(bytes);
            return BitConverter.ToInt32(bytes, 0);
        }

 

posted on 2016-03-24 11:51  HOT SUMMER  阅读(191)  评论(0)    收藏  举报

导航