Python: Generate six random integers between 10 and 30
Python NumPy: Random Exercise-2 with Solution
Write a Python program to generate six random integers between 10 and 30.
import numpy as np x = np.random.randint(low=10, high=30, size=6) print(x)
[14 25 20 12 27 22]
Python Code Editor:
Improve this sample solution and post your code through Disqus