標籤

2012年11月8日 星期四

產生亂數

qsrand(QDateTime::currentDateTime ().toTime_t ());
混亂數
int n=qrand() % x;
取出亂數 範圍在 0 ~  x

沒有留言:

張貼留言