from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
from random import randint

valor = randint(0, 10000)

#print(valor)

i2c = I2C(0)

oled = SSD1306_I2C(128, 64, i2c)

oled.text(str(valor), 10, 10)      
oled.show()
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT