See the FAQ How do I shuffle an array randomly? for a shuffle algorithm.
In reply to Re^3: array shuffle by jwkrahn in thread array shuffle by boom.roasted