from machine import PWM,Pin

import time,random

buzzer =PWM(Pin(0))
buzzer.duty_u16(65535)

while True:
    
    r = random.randint(40000,70000)
    print(r)
    buzzer.freq(r)
    
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT