Answers for "python generate 4 random numbers"

84

random number python

# generate random integer values
from random import randint

value = randint(0, 10)
print(value)
Posted by: Guest on February-15-2020
2

generate 12 random numbers python

#Array containing 12 random integers from 0 to 100
data = np.random.randint(100,size=(12))
print(data)
Posted by: Guest on August-13-2021
0

how to generate random numbers in python

# generate random integer values
from random import seed
from random import randint
# seed random number generator
seed(1)
# generate some integers
for _ in range(10):
	value = randint(0, 10)
	print(value)
Posted by: Guest on June-23-2021

Code answers related to "python generate 4 random numbers"

Python Answers by Framework

Browse Popular Code Answers by Language