What you want is probably these totals:
//echo -a no-status= $nick($chan,0,r) status-of-any-kind: $nick($chan,0,a,r)
depending on who the spinner is. The total of the above numbers is the total count in your nicklist. In addition to checking for no-players in the other list, you might want to check for the boring 1-player-in-other-list. If not wanting the same nick be chosen from that group twice in a row, the best way is to get another random $nick($chan,$rand(1,$nick($chan,0,r))).nick if it's a repeat, for which you'd need at least 2 nicks in the other group to avoid an infinite loop.