Re: How should I scramble a table?
Posted: Sun Sep 16, 2012 4:34 pm
danketv_user wrote:I just love these mind-twisting assignment operations! Nice and simple solution qaisjp!qaisjp wrote:Code: Select all
tab[i], tab[r] = type(tab[r])=="table" and shuffle(tab[r]) or tab[r], type(tab[i])=="table" and shuffle(tab[i]) or tab[i]