stdlb is a C standard library not the C++ STL
In the friendly Books Online:
"The rand function returns a pseudorandom integer in the range 0 to RAND_MAX. Use the srand function to seed the pseudorandom-number generator before calling rand."
So:
1. seeding the generator -- Books Online sample code shows you how to do this using the time function
2. limiting values to a range. Hmmm, what does % do? (Hint 2: then add +1)