The latter part of the sentence provides a clue for the blank. As the river changed its course after every downpour, this implies that river was tending to change abruptly and without any apparent reason. As “capricious” means unpredictable, hence replaces the blank. Thus, (3) is the answer.