Hi, I have just started to teach myself C++ programming for DOS (I use the DJGPP compiler). I need to find a way to generate random numbers (its for a number-guessing game that I have set myself a task to create!). I need the numbers to be within a certain range for example 0-10000.

I cannot seem to make any of the srand() or rand() commands work.

Which headers do i need to #include ?

Greatful for any enlightenment

It's a great language to learn isn't it, very satisfying when it works (not often for me).