日志
Qt产生随机数
2013-08-30 17:17
QTime time;
time= QTime::currentTime(); qsrand(time.msec()+time.second()*1000); int randnum=qrand()%10 ;//在0-9中选出随机数 |
QTime time;
time= QTime::currentTime(); qsrand(time.msec()+time.second()*1000); int randnum=qrand()%10 ;//在0-9中选出随机数 |
Powered by phpwind v8.7 Certificate Copyright Time now is:04-30 08:06
©2005-2016 QTCN开发网 版权所有 Gzip disabled