How to use srand() in a class function and yield different results

后端 未结 0 1353
情书的邮戳
情书的邮戳 2020-12-01 14:42

I am trying to create a class in c++ where the class functions calculate a chance of something happening. But when I try to implement the functions using srand(time(0)

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