C#随机函数

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37602383/article/details/78474921

class namesapce
{
//生成0-100的值
int a ;
	Random random=new Random();//声明随机值
	a=random.next(1,100)// 随机值范围

}


猜你喜欢

转载自blog.csdn.net/m0_37602383/article/details/78474921