Pizzo Buzzer Random Loop Help!

I'm new to programming (like 1 week new) so could you show how you would delay the random function? Thanks a ton :smiley: