I am trying to create an if statement to check a condition for each iteration
for in range(100):
B10 = np.random.randint(0, precip.shape[0])
T10 = np.random.randint(0, precip.shape[0] )
if np.abs(B10-T10) <=30:
T10 = np.random.randint(0, precip.shape[0])
I want to create an if condition that will get new values of T10 until the condition above is met for every iteration. How can I do this?
until the condition above is met-whileloop?