import utime, random
from machine import Pin
Red = Pin(16, machine.Pin.OUT)
Green = Pin(17, Pin.OUT)
while True:
r = random.randint(0, 1)
g = random.randint(0, 1)
Red.value(r)
utime.sleep(0.01)
Green.value(g)
utime.sleep(0.01)