Hey guys what I'm about to ask isn't for what I really need it for but learning how to use the rand() function in this manner will help me apply it to what I need it for.
Lets say I wanted to ask the user for a random integer such as 25. Now I want the computer to generate a random number between 0 and 25, I know that I can make a variable such as "int randNum = rand()" but that will give me a very large random number. How can I limit that random number the computer generates to 25?