I would like to get a random number between two intervals, 1, 4 and 8, 16
To get a random number between one interval I would have to do this:
randNumber = random(1, 3);
What if I wanted my variable to have the possibility to be a number between 8 and 16 too, and not only between 1 and 4?
Thank you.