Rand function

Hi folks. I started teaching myself C++ this month, and I have just completed my first program. It's a simple music theory quiz. It's supposed to randomly generate a key and scale, and then the user guesses how many sharps/flats are in the given scale.

Everything works the way it's supposed to, except that when the user selects "Play again," the program generates the same key and scale as the first time. The only way to get a new, randomly selected key/scale is to quit and restart the program.

I'm sure I must be making a very simple mistake, but, like I said, I'm very new to C++, and I've got a lot to learn about the rand function (along with every other function!).

Ah, of course. I knew it would be something simple. Thanks for your help, tath and keskiverto!

Incidentally, the reason I don't just use a random number between 1 and 7 is because I need a number that represents the note's position on the piano, so that the "assess" expression will work properly. Anyway, thanks again.