from sense_hat import SenseHat
import random
from time import sleep
sense=SenseHat()
sense.clear()
while True:
for y in range(8):
for x in range(8):
r=random.randint(0,255)
g=random.randint(0,255)
b=random.randint(0,255)
sense.set_pixel(x,y, r,g,b)
sleep(0.5)