I am trying to create a method that generates a random number from a specific selection of numbers, it must be either 0, 90, 180 or 270.
This is the method I have so far to generate a random number between a certain range, but I am not sure how to generate a random number from a specific selection.
int randomNum(int min, int max) {
return rand() % max + min;
}