清风的blog 优然探索

随机数

byte[] data = new byte[4];
                System.Security.Cryptography.RandomNumberGenerator.Create().GetNonZeroBytes(data);
                uint uRan = BitConverter.ToUInt32(data, 0).ToString();

2011年8月23日 | 发布:admin | 分类:技术文章 | 评论:0

发表留言: