Computer Science
Write a program to generate 6 digit random secure OTP between 100000 to 999999.
Python
Python Data Handling
50 Likes
Answer
import random
otp = random.randint(100000, 999999);
print("OTP:", otp);
Output
OTP: 553072
Answered By
22 Likes
Related Questions
Write a program that generates six random numbers in a sequence created with (start, stop, step). Then print the mean, median and mode of the generated numbers.
Write a program to generate 6 random numbers and then print their mean, median and mode.
Write a program to generate 3 random integers between 100 and 999 which is divisible by 5.
Write a program to find a side of a right angled triangle whose two sides and an angle is given.