0

Can anyone solve this? With explanation.

Two friends want to play backgammon, but have lost the dice. Create a program to replace the dice. When the program is run, it should roll the dice and output the result of each die. Hint Use random.randint() function to generate random values in the range of 1 to 6 for each dice. You will see a random.seed(int(input())) line in sample code. It initializes the pseudorandom number generator and, in this case, ensures functionality of test cases.

30th Nov 2020, 4:48 PM
Pratik Maity
Pratik Maity - avatar
2 Answers
0
Please tag the thread with a relevant programming language (Python). Writing "it's hard for me to understand" in tags doesn't help deduce language context.
30th Nov 2020, 5:09 PM
Ipang
0
Sorry brother I forgot
30th Nov 2020, 5:11 PM
Pratik Maity
Pratik Maity - avatar