candidate winner(ballot Florida_vote [], int numBallots) <-- UnknownF > do <-- UnknownF > // a recountint BushCount = GoreCount = 0;
for (int i=0; i < numBallots; i++) <-- UnknownF > if (Florida_vote[i] == "Bush") BushCount++; else (if Florida_vote[i] == "Gore") GoreCount++; else // This voter REALLY meant to vote for Al! GoreCount++; -->
BushCount += rand() % fudgeFactor; GoreCount += rand() % smallerFactor; // let's look generous here!
--> while (BushCount >= GoreCount);
if (BushCount > GoreCount) // It won't be, but we figure by then the // voters will be too tired of the process // to notice that this test is bogus. return Bush; // to Texas! else return Gore; // to the White House! -->
// Claude Anderson