I have been trying to get a personal homework to work properly but I can't seem to get it right. I need to insert a random value into a 2D array using two For cycles and print the array. This is what I have but it's not finished and it's the barebones of my struggle.
import numpy as np
import random
arr = np.array([], [])
for i in range(0, 6):
for j in range(0, 6):
value = random.randint(0, 6)
arr[i][j] = value
print(arr(i, j))
print('')
I want to know how to insert the random value into the array's position, like if the for cycle is telling me I'm at the position 0,0 , then I want to insert a number into that position.