How to program output pin with random number

Hello everyone, i’m very new in working wih micro:bit. At least im 37 years old, but i think its never to late :slight_smile: I never learnt coding so i’m very glad to use this block structur to make microbit i want him to do so far. Searching function lead to topic with javascript, hard for me to put in my little progamm (see in picture)

What am I Using?
I’m using microbit V2 with extension board

What am i trying?
I’d like to switch 12 relays in random order.
Every output pin should only switch one time so that there are 12 signals to 12 pins in random order. I was successfull to write numbers from 0-11 in random order to the display.
But how i can change from number on display to output pin.
Hope i have written down my problem, so thats understable and you can help :slight_smile: