very cleaver.

$my_rand(1,100) == $rand(1,101)
if (101) then 1

since both are chosen only half the number of times they ought to be, their combined effort evens the odds... and no wasted mis-fires.

very cleaver indeed.