Not much to go on there. I understand the confusion.
Based on what I can see, it seems they’re expecting you to use np.rand.randint() to generate a random starting index, for each of the x, y, and z dimensions.
Do the instructions include any links to the np.random.randint() documentation? That would be typical for how DL.AI writes its labs.
For example, the start_x value would be randomly selected between 0 and (orig_x - output_x). That way the end of the sample won’t run past the size of the image.
Here’s the definition for np.random.randint(). Note that if you don’t supply a ‘size’ parameter, it defaults to returning one integer value.
Kindly discussion of codes needs to be done in DM especially when sharing about codes as posting codes on public post is considered violation of code of conduct @skiman
Also from future don’t post grade functions codes rather just the error, your output. if mentor wants to look at your codes they will ask you to send by DM