I want to find and increase the Value of an Array by 1.
But I also want to look into cases with multiple maximas with the same value.
A = [22 22 17 18 12];
By default it increases the first element of the array. In my case it should select the second one or should increase it randomly if there are multiple maximas.
Any help would be appreciated.