Can someone explain this c++ number generating function I want to get a better understanding of the array used?

前端 未结 0 1454
星月不相逢
星月不相逢 2020-12-10 16:24
// function to generate and retrun random numbers.
int * getRandom( ) {

   static int  r[10];

   // set the seed
   srand( (unsigned)time( NULL ) );
   
   for (in         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题