How do I create a randomly alternating sequence of a sine wave and a square wave in Python? The sequence needs to look like this: 1