If there are n lines that are dike, you want to randomly select one of those lines and change it to water.
Assign the lines a number from 0 to n-1 and use the Random number generator to randomly...