Assumes that you're working in an environment where you can generate random numbers, and 0 represents heads while 1 represents tails. Write simple pseudocode that uses a function for a coin toss