11-07-2011, 11:45 PM
Less of a bug and more of an off-by-one error. See, when programming people tend to make lots of off-by-one's, especially when concerning inequalities. They're really hard to find because they don't generate an error, and are somewhat hard to find under a massive stack of code. Likely all the guy had to do was change the operator for the max random number from < to <=.
|