in reply to Random shuffling

Since you are rightly concerned that your code is correct, you need to compare your output against some verified model. Does anything in BioPerl help?