Is there a simple way in which using rand (without using other functions) can generate random numbers between 45 and 75 (inclusive) and that these are 45,48,51,54,57,60,63,66,69,72,75
(that is, go from 3 to 3)?
I know how to perform the interval but not the sequence. The interval would be
45+ (rand ()% 33)
But I should add something to perform the sequence. Sorry if the question is very basic.