Randomizing a queue

In reply to dave_59:

Thanks a lot Dave. That queue thing was a typo. will review my code better from next time onwards before posting.