Pizzo Buzzer Random Loop Help!

Ok this is how programming works. Some one mentions a function so you RTFM here

Then you put that function inside the brackets of the delay function call. Thus telling the call to delay for a time given by the number of milliseconds returned by the random function.