1 Answers
Hello Umar, you can use the random MicroPython package: https://microbit-micropython.readthedocs.io/en/latest/random.html
That documentation is for the microbit, but they should work with the ESP32/ESP8266 MicroPython firmware that we use in the course.
I hope that helps! Regards,
Rui