Avoiding Repeated seed generation using srand()

后端 未结 4 635
悲哀的现实
悲哀的现实 2021-01-27 07:06

I have a typical situation where I need to generate a batch of random numbers. I have used a loop which generates 100 random numbers on each pass:

for(int i=0; i         


        
4条回答
提交回复
热议问题