I'm trying to make a program that says something random every time you press enter. I can't figure out how to store a random number into a variable. How woudl I go about doing that?
int rNumber = rand();
That was almost too easy, so either you haven't heard of the rand() (in that case you need to initialize it by calling srand() first) function yet or I misunderstood your question.