惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

TaoSecurity Blog
TaoSecurity Blog
Jina AI
Jina AI
雷峰网
雷峰网
月光博客
月光博客
The GitHub Blog
The GitHub Blog
WordPress大学
WordPress大学
B
Blog RSS Feed
美团技术团队
C
CXSECURITY Database RSS Feed - CXSecurity.com
小众软件
小众软件
Security Latest
Security Latest
Microsoft Azure Blog
Microsoft Azure Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cybersecurity and Infrastructure Security Agency CISA
Last Week in AI
Last Week in AI
A
Arctic Wolf
Latest news
Latest news
Attack and Defense Labs
Attack and Defense Labs
I
Intezer
F
Fortinet All Blogs
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
Webroot Blog
Webroot Blog
S
Secure Thoughts
Help Net Security
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
V
Visual Studio Blog
P
Proofpoint News Feed
博客园 - 【当耐特】
P
Privacy International News Feed
V
Vulnerabilities – Threatpost
Stack Overflow Blog
Stack Overflow Blog
Know Your Adversary
Know Your Adversary
云风的 BLOG
云风的 BLOG
Hacker News: Ask HN
Hacker News: Ask HN
L
LINUX DO - 最新话题
H
Help Net Security
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tenable Blog
Cloudbric
Cloudbric
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Hugging Face - Blog
Hugging Face - Blog

博客园 - 王兴2008-偶想家了!

php构造数组,并把多数组插入php文件 Apache2服务无法启动--解决方法 晕 phpcms框架下的标签参数说明! 呵呵 痛苦后的一点小小发现!!! 解决.NET下Web项目打开失败的问题(转) suse linux 下TomCat安装 suse linux 下JDK安装 (转)Struts常见问题总结 session.flush机制(转)!!! 关于tomcat默认页面的设置!!! - 王兴2008-偶想家了! - 博客园 关于在java中List取值的方法(List中是数据对象)! 关于数据库中去掉数据空格的方法!!! 关于在CVS下无法获取更新的解决方法!!! Java开发者需坚守的十大基本准则(转) Windows2003之搭建FTP服务器 关于这几天倒数据的一些心得 关于数据库中重复的记录  的几种取出方法 IIS的各种身份验证详细测试(转) 给你绑定后的DropDownList加一个默认项!!!
一个生成 N 位随机数字的方法
王兴2008-偶想家了! · 2007-11-05 · via 博客园 - 王兴2008-偶想家了!

    呵呵  大家一起研究阿!!!!!

    /// </summary>
    /// <param name="n">生成长度为 n </param>
    /// <returns></returns>
    public static string RandNum()
    {
        char[] arrChar = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };
        StringBuilder num = new StringBuilder();

        Random rnd = new Random(DateTime.Now.Millisecond);

        for (int i = 0; i < n; i++)
        {
            num.Append(arrChar[rnd.Next(0, 9)].ToString());

        }

        return num.ToString();
    }