Redundant code: Difference between revisions

Content deleted Content added
Undid revision 983749102 by Jarble (talk)
Rewrote final sentence to make its meaning clearer and remove comma overload.
Line 58:
</source>
 
If the initial call to rand(), modulo range, is greater 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 may not work, inproduce the, perhaps expected,intended way,behavior for this function.
 
==See also==