Answers for "python generate random population distribution"

5

python random

from random import randint # Import randint from random
print(randint(1,20)) # Gets random number from first parameter to the second
Posted by: Guest on October-07-2020
4

random range python

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

Code answers related to "python generate random population distribution"

Python Answers by Framework

Browse Popular Code Answers by Language