Answers for "python how to make x take on a random value in a given range"

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
3

random number pythn

import random
n = random.randint(0,22)
print(n)

# Output: 2
Posted by: Guest on August-23-2020

Code answers related to "python how to make x take on a random value in a given range"

Python Answers by Framework

Browse Popular Code Answers by Language