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

推荐订阅源

WordPress大学
WordPress大学
T
Threatpost
阮一峰的网络日志
阮一峰的网络日志
美团技术团队
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
月光博客
月光博客
V
Visual Studio Blog
T
Tailwind CSS Blog
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
Recorded Future
Recorded Future
C
Check Point Blog
腾讯CDC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
Hacker News: Ask HN
Hacker News: Ask HN
SecWiki News
SecWiki News
博客园 - Franky
Hacker News - Newest:
Hacker News - Newest: "LLM"
N
News | PayPal Newsroom
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security @ Cisco Blogs
W
WeLiveSecurity
The Last Watchdog
The Last Watchdog
Cloudbric
Cloudbric
F
Full Disclosure
The Cloudflare Blog
Y
Y Combinator Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
S
Schneier on Security
Schneier on Security
Schneier on Security
Spread Privacy
Spread Privacy
L
LINUX DO - 热门话题
AI
AI
N
News and Events Feed by Topic
T
Tor Project blog
P
Palo Alto Networks Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers 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();
    }