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 Colin Broyles (740 points)
closed Mar 4, 2021 by Colin Broyles
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 (63,320 points)
selected Mar 4, 2021 by Colin Broyles
 
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.
...