Answers for "how to generate two different random numbers in python"

7

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
0

generate n different random numbers python

>>> import random
>>> random.sample(range(1, 100), 3)
[77, 52, 45]
Posted by: Guest on November-22-2021

Code answers related to "how to generate two different random numbers in python"

Python Answers by Framework

Browse Popular Code Answers by Language