Use a variable that stays constant for a few seconds. Use random numbers for angle and pen color. "If on edge, bounce" block.