Answers for "python how to create a random number between 1 and 2"

6

How to get random int between two numbers python

import random
print(random.randint(10,100))

  this will output somthing between 10 and 100
Posted by: Guest on July-13-2020
4

random range python

from random import randrange
print(randrange(10))
Posted by: Guest on July-16-2020

Code answers related to "python how to create a random number between 1 and 2"

Python Answers by Framework

Browse Popular Code Answers by Language