flip code example
Example 1: flip a coin javascript
function coinFlip() {
return (Math.floor(Math.random() * 2) == 0) ? 'heads' : 'tails';
}
Example 2: coinflip
import random
random.choice('Heads', 'Tails')
Example 3: fliplr
flip array from left to right