Changeset 70 in tspsg-svn
- Timestamp:
- Nov 2, 2009, 9:56:53 AM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main.cpp
r57 r70 44 44 app.setApplicationName("TSPSG"); 45 45 app.setApplicationVersion(BUILD_VERSION); 46 47 // Seeding random number generator 48 qsrand(QDateTime::currentDateTime().toTime_t() ^ QCursor::pos().x() ^ QCursor::pos().y()); 49 46 50 MainWindow mainwindow; 47 51 mainwindow.show(); -
trunk/src/tspmodel.cpp
r67 r70 468 468 inline int CTSPModel::rand(int min, int max) const 469 469 { 470 return min + (int)(((float)qrand() / RAND_MAX) * max);471 } 470 return min + (int)(((float)qrand() / RAND_MAX) * (max - min)); 471 }
Note: See TracChangeset
for help on using the changeset viewer.