Unity在多线程中使用随机函数
private void RandomThread(){
System.Random tempRandom=new System.Random();
int tempI=0;
while(tempI<=10){
Debug.Log(tempRandom.Next(0,5));
tempI+=1;
}
}
private void RandomThread(){
System.Random tempRandom=new System.Random();
int tempI=0;
while(tempI<=10){
Debug.Log(tempRandom.Next(0,5));
tempI+=1;
}
}