A number between 1 and 15 should be choosen random in C. The choice will be repeated 15 times in one game.
It should also be possible to repeat the game a few times without repeating a sequence.
In C I just know int rand(void). But I do not see the possibility to limit the numbers to be choosen from 1 to 15.
I also do not see the possibility to avoid the repetition of the numbers sequence for a few times.
Could somebody help me?
Many thanks and have a nice day!