Skip to main content

Write a random number generator that generates random numbers between 1 and 6


import random
n=int(input("enter range for integer :"))
print(random.randint(1,n))

Comments

Popular posts from this blog

Write a program to show the use of recursion in calculation of power.

#Program to show the use of recursion in calculation  of power. #Code #power a to b using recursion 6_4

Factorial of a number

Q:1 Write a program to Calculate the factorial of the inputted numbers. Program: 1: