if you want to use the secure version rand_s() - be careful, it only works on XP and higher!!

http://msdn2.microsoft.com/en-us/library/sxtz2fa8(VS.80).aspx

Guess you don’t get to be secure on Windows 2000 or lower. :P