hi i want to replace a value in an array at a specific position with a "1" the index that is to be replaced is give by a random number calculator.
array:
cellMAP_0 = np.full((11,7),0)
random number to be exchangend:
start_point = random.randint(0,cellMAP_0.size)
fe. if star_point = 45, the index 45 in cellMAP_0 should be replaced with a 1 and cellMAP_0 should still be an 2d array
sry if this is very basic but i didnt found any help here with the search. thank you for your help