Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

closed Is there a randomizer function in this version of python?

+5 votes
asked Mar 2, 2021 by popstar403 (750 points)
closed Mar 4, 2021 by popstar403
If so, How do I use it?

(Python 3 question)
closed with the note: It has been Answered

1 Answer

+3 votes
answered Mar 2, 2021 by Peter Minarik (86,040 points)
selected Mar 4, 2021 by popstar403
 
Best answer

Please, read this: https://www.w3schools.com/python/ref_random_randint.asp

Example

import random

print(random.randint(3, 9))
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...