Next总是返回相同的值
Count()r1r2Random.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();
}}
不负相思意
哆啦的时光机
随时随地看视频慕课网APP
相关分类