SyntaxFix
Write A Post
Hire A Developer
Questions
I just found this on the Internet. This should work:
DWORD random = ((min) + rand()/(RAND_MAX + 1.0) * ((max) - (min) + 1));