import time
from random import *
time.sleep(0.1) # Wait for USB to become ready
print("ready")
from machine import Pin
leds = [Pin(4, Pin.OUT), Pin(5, Pin.OUT), Pin(6, Pin.OUT), Pin(7, Pin.OUT), Pin(8, Pin.OUT)]
ind = 0
while(True):
for i in leds:
ok = randint(0, 1)
if ok == 0:
i.high()
else:
i.low()
time.sleep(0.1)