Thank you so much! That works very well.
Does this work like the fisher yates algorithm?