Changeset 70 in tspsg-svn for trunk/src/tspmodel.cpp
- Timestamp:
- Nov 2, 2009, 9:56:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.