Next总是返回相同的值
Count()
r1
r2
Random.Next
class a{ Random rnd = new Random(); private void Count() { int r1 = rnd.Next(-1, 1); int r2 = rnd.Next(-1, 1); }}class b{ List<a> listofA=new list<a>(); foreach (a ACLASS in listofA) { ACLASS.Count(); }}
哆啦的时光机
相关分类