Possible Duplicate:
Filling an array with random numbers from 1 to 10^10 in C or C++
Hello,
Simple question; I am looking for a way to get a higher random value than rand() gives me. rand() gives 32767 max. (http://msdn.microsoft.com/en-us/library/398ax69y%28v=vs.80%29.aspx) I've tried redefining RAND_MAX, but I guess the compiler dosn't accept redefining, because it's within the same boundary as default.
I basically want a random value that fits in an unsigned integer (generating a SSRC number in an RTP packet). I really don't want collisions! Is there any better win32 function than rand()?
Thanks in advance