I'm creating a dice game in python:)
I got the number of plays as input like this
no_of players = int(input('Number od players: '))
How can I generate random numbers 1,6 according to the number of players?
I'm creating a dice game in python:)
I got the number of plays as input like this
no_of players = int(input('Number od players: '))
How can I generate random numbers 1,6 according to the number of players?
Sample Random number generator that generates random numbers between 1 and 6
import random
print(random.randint(1, 6))