hello, today i had to write the mastermind game , now after it worked my teacher asked me to put some code that i wrote in a function or procedure, now i understand the principle behind function or procedure , tho i do not get how to start adjusting my code to a function or procedure. anyone got tips ? it has to be done for the random numbers and for the While loop numbers should be between 1-4 for this one to. How do i convert these to a function, or atleast how do i start ?