PW Akshay

Generation

generate functionFri, 02 Dec 2022

Write a random number generator that generates random numbers between 1 and 6 (simulates a dice)

import random def dice(): return random.randint(1,6) dice()

Questions about programming?Chat with your personal AI assistant