每次生成的随机数都是一样的 有哪位大神能告诉我为什么嘛
#include <iostream>
#include<string>
#include<stdlib.h>
#include<time.h>
using namespace std;
int main() {
for (int i = 0; i <= 8; i++) {
for (int j = 0; j <= 8; j++) {
unsigned srand(time(0));
unsigned int t = rand() % 101;
cout << t << '\t';
}
cout << endl;
}
return 0;
}