Currently the random implementation in InsectPunController, FishPunController and ArtworkController isn't right and can return an out of bounds number.
This is because its been set to return a number between 0 and the size of all puns but the list is 0 indexed so the max value is size -1 not size.
Also it would be better to use ThreadLocalRandom instead of the Math.random
Currently the random implementation in InsectPunController, FishPunController and ArtworkController isn't right and can return an out of bounds number. This is because its been set to return a number between 0 and the size of all puns but the list is 0 indexed so the max value is size -1 not size.
Also it would be better to use
ThreadLocalRandom
instead of theMath.random