Can't find a mistake or removeAll() doesn't work

Hello,

Please check the sketch at https://www.openprocessing.org/sketch/851540

it seems that when run in openprocessing.org it passes but a few iterations of the while() loop of the getRandom() method, but it prints that the size() of ArrayList candidates decreases.

when run from the processing ide it shows that removeAll() method doesn’t work, the size() remains the same.

Please help, I don’t know what to do…

1 Like