- 2

I don't know how use the random.randint , help

Maybe im fool idk, but in a code coach (generating dices) it says "SyntaxError" and i don't know how it works (sorry for my english, my common language is the spanish), i tried this dice1 = random.randint (1 , 2 , 3 , 4 , 5 , 6) dice1 = random.range (1 , 2 , 3 , 4 , 5 , 6) dice1 = random.randint (range (1 , 2 , 3 , 4 ,5 ,6)) And other codes

26th Aug 2021, 9:50 PM
Gaby
Gaby - avatar
1 Answer
0
Did you import the random module?
26th Aug 2021, 9:59 PM
Simon Sauter
Simon Sauter - avatar