This is the code. It basically sets random numbers as variables, then draws the lines based on thoxe values.