int[] arrViewCount = new int[] { 1, 3, 5, 7, 9, 2, 4, 6, 8 };
Random r = new Random();
int n = r.Next(0, arrViewCount.Length - 1);
Response.Write(arrViewCount[n].ToString());从指定的数组中,随机抽取一个数
随机选取数组元素
最新推荐文章于 2025-09-07 20:41:03 发布

4797

被折叠的 条评论
为什么被折叠?



