You protect against picking from @t1 when it is empty but not against picking from @t2 when it is empty.
!@t2 || @t1 && (rand < .5) ? ...
- tye
In reply to Re: Stable mixing of 2 arrays into a 3rd
by tye
in thread Stable mixing of 2 arrays into a 3rd
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |