;;;;;;;;Go to exten ${ROOMMATEN[1-6], and use their weight to "draw" for a "win";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
exten => Brad,1,noop(we made it here ${CLEANER[1]}) ;jump to three if we have a winner
exten => Brad,2,random(${MATEWEIGHT[1]},Brad,3) ;jump to three if we have a winner
exten => Brad,3,goto(s,18) ;or else draw again.
exten => Brad,4,gotoif($[ "${CLEANER[1]}" = "Brad"]?3) ;did we just pick him?
exten => Brad,5,set(__WINNERS=$[${WINNERS}+1]) ;if not we have a winner
exten => Brad,6,set(__CLEANER[${WINNERS}]=${ROOMMATE[1]}) ;and we set the CLEANER variable
exten => Brad,7,noop("we made it here). ;and draw again
exten => Brad,8,goto(s,18) ;and draw again
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;Go to exten ${ROOMMATEN[1-6], and use their weight to "draw" for a "win";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
exten => Brian,1,random(${MATEWEIGHT[2]},Brian,3) ;jump to three if we have a winner
exten => Brian,2,goto(s,19) ;or else draw again.
exten => Brian,3,gotoif($[ "${CLEANER[1]}" = "Brian"]?2) ;did we just pick him?
exten => Brian,4,set(__WINNERS=$[${WINNERS}+1]) ;if not we have a winner
exten => Brian,5,set(__CLEANER[${WINNERS}]=${ROOMMATE[2]}) ;and we set the CLEANER variable
exten => Brian,6,goto(s,19) ;and draw again
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;