perl -e "print sprintf('%03b',$_).' '.int(rand()+0.5).$/ for 0..7"
perl -e'printf"%03b %b\n",$_,rand(2)for 0..7'
You can chop one character off like perl -e'printf"%03b %b\n",$_,rand 2for 0..7'.
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (543 votes). Check out past polls.