in reply to Re^2: biased random number picking
in thread biased random number picking
That is not the way I interpreted the OP's specification. If the OP had explicitly stated that no pair should contain any repeat number as another pair, then there is no need to have the shuffle in the loop.