正文
100块发30个红包
demo
////// 抢红包 /// /// ///public List suiji(List list) { Random rnd = new Random(); for (int i = 0; i < list.Count; i++) { int temp = list[i]; int j = rnd.Next(0, list.Count-1); list[i] = list[j]; list[j] = temp; } return list; }
以上就是ASP.NET实现微信抢红包代码实例的详细内容,更多请关注php中文网其它相关文章!