I am using threads to generate a random number. Furthermore animation function is used for the plotting of a sine function. The purpose of the code is to run all the five functi