in reply to Re: Array Shuffle
in thread Array Shuffle

Said brute-force solution would fall in the category of bogoshuffle...   :P

Replies are listed 'Best First'.
Re^3: Array Shuffle
by QM (Parson) on Feb 28, 2006 at 18:21 UTC
    Reading the whole WP entry, you might try a bozo-shuffle -- if it's not shuffled, swap the current item for an item later in the list, then back up 1 position (as the just swapped in item might sort before the previous item).

    (This seems to devolve into a bubblesort in reverse, well, sorta.)

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of