Answers for "how to set a random variable in python"

1

how to make a random variable in python

import random
value = randint(1,10)
#1 and 10 represent the range for your random value
print(value)
Posted by: Guest on March-25-2020
8

random numbers python

import random
a = (random.randint(bottom value, top value)
Posted by: Guest on July-09-2020

Code answers related to "how to set a random variable in python"

Python Answers by Framework

Browse Popular Code Answers by Language