Does anyone know how to generate a random number in C++? I looked on Planet-Source-Code for some code, but the shortest was like 40 lines. I just want to get a random integer between 1 and 100. Now I realize why I use VB more that C++. The code should be no more than 20 lines of code, and even that is extreme for this simple project.

Thanks for any help.

PS I am a C++ Newbie