in reply to Re: biased random number picking
in thread biased random number picking

There is no need to repeat the shuffle each time through the loop. Use the next two numbers.

Replies are listed 'Best First'.
Re^3: biased random number picking
by toolic (Bishop) on Jul 12, 2012 at 12:49 UTC
    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.
Re^3: biased random number picking
by Anonymous Monk on Jul 12, 2012 at 12:16 UTC
    In fact the solution is incorrect unless you do this ... and correct if you do.