It's easy to choose 1 of 2 options.

But how do you choose from 1 of 3 or 4 or more?

Pseudocode

choose a number from 1 to 3 (let's call it CHOICE)

if CHOICE == 1 draw head #1

if CHOICE == 2 draw head #2

otherwise draw head #3

Is the code below equivalent to the code above? Why or why not?