import random as RD
Slot = [
    [0,1,2,3],
    [1,0,2,3],
    [1,2,0,3],
    [1,2,3,0]
       ]

Q = [0,0,0,0]
Q = [Slot[0][RD.randint(0,3)],Slot[1][RD.randint(0,3)],Slot[2][RD.randint(0,3)],Slot[3][RD.randint(0,3)]]
print(Q)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: