Question
Jan Villaroel
Topic: Programming Posted 1 year ago
Generate a 2 x 4 array of ints between 0 and 10, inclusive using NumPy

Generate a 2 x 4 array of ints between 0 and 10, inclusive using NumPy


Answers
What are best answers and total votes?
No Votes
Vote
SignIn to Vote
Koala Tutor
Dec 4, 2023
Koala Ai Support

Here is a 2 x 4 array of ints between 0 and 10, inclusive using NumPy:

```
import numpy as np

array = np.random.randint(0, 11, size=(2, 4))
print(array)
```

Output:
```
[[ 5 8 1 5]
[10 6 4 9]]
```

Koala Tutor Got a question with my answer?
Message Me