This is a Random Number Generator. Depending on a number, it randomizes the outcome. In this example, if the number is 5 or more, the squid plays drums. If it is 4 or below, it is a pirate.
-Me -Me -and... me.