void CRailTrack::RandomizeTestCols(int startCol, int stopCol) { int numCols = (stopCol - startCol); int swapA; int swapB; for (int swapNum=0; swapNum<numCols; swapNum++) { swapA = Q_irand(0, numCols-1); swapB = Q_irand(0, numCols-1); if (swapA!=swapB) { mTestCols.swap(swapA, swapB); } } }