Q:

Write a NumPy program to generate six random integers between 10 and 30

0

Write a NumPy program to generate six random integers between 10 and 30.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import numpy as np
x = np.random.randint(low=10, high=30, size=6)
print(x)

Sample Output:

[14 25 20 12 27 22]

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now