Redundant code: Difference between revisions

Content deleted Content added
Line 55:
</source>
 
The reason is that its implementation is incorrect. If the initial call to rand(), modulo range, is lessgreater than or equal to cutoff, rand() will be called a second time for a second computation of rand()%range, which may result in a value that is actually lower than the cutoff. The max macro will thus not work for this function.
 
==See also==