I want to generate random numbers, but don\'t want them to be from exclude array. Here is my code.
exclude
public int generateRandom(int start, int end,
if(!exclude.contains(random)) return random;
Try this every time it will return the value that is not in exclude.