会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Jearay
博客园
首页
新随笔
联系
订阅
管理
2014年2月17日
转: c#.net利用RNGCryptoServiceProvider产生任意范围强随机数的办法
摘要: //这样产生0 ~ 100的强随机数(含100) int max = 100; int rnd = int.MinValue; decimal _base = (decimal)long.MaxValue; byte[] rndSeries = new byte[8]; System.Security.Cryptography.RNGCryptoServiceProvider rng = ne...
阅读全文
posted @ 2014-02-17 12:40 Jearay
阅读(364)
评论(0)
推荐(0)
编辑
公告