Page 2 of 2

Re: How should I scramble a table?

Posted: Sun Sep 16, 2012 4:34 pm
by qaisjp
tv_user wrote:
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]
I just love these mind-twisting assignment operations! Nice and simple solution qaisjp! ^^
danke ^^

Re: How should I scramble a table?

Posted: Sun Sep 16, 2012 4:51 pm
by Nixola
(Thanks)