C# 生成随机数

Random ra = new Random();
int n = ra.Next(0,12); 

 (随机数>=0 AND 随机数<12)

posted @ 2013-09-18 17:34  小刘_php  阅读(82)  评论(0)    收藏  举报