Thanks.
This is the code:
Best regards, ToñoCode:inline int Aleatorio(int nMin, int nMax) { UINT nNumero = 0; rand_s(&nNumero); UINT n_s = nMin + nNumero % (nMax + 1 - nMin); return n_s; }
![]()
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: [RESOLVED] rand_sThreaded View
|
Click Here to Expand Forum to Full Width |