perl -MList::Util=shuffle -le 'print ((shuffle(qw(Liberal Conservative NDP Green)))[0])'
Pros: no hardcoding of list length
Cons: O(n). But voting is not a lighthearted matter, and is worth spending some time mulling over.
In reply to Re: Vote decider
by gaal
in thread Vote decider
by Trag
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |