产生随机数
QTime time;
time= QTime::currentTime();
qsrand(time.msec()+time.second()*1000);
int n = qrand();
0到100随机数
QTime time;
time= QTime::currentTime();
qsrand(time.msec()+time.second()*1000);
int n = qrand()%100;
产生随机数
QTime time;
time= QTime::currentTime();
qsrand(time.msec()+time.second()*1000);
int n = qrand();
0到100随机数
QTime time;
time= QTime::currentTime();
qsrand(time.msec()+time.second()*1000);
int n = qrand()%100;