+ 18
First of all, you shouldn't fool around with srand parameter which is always time(0) [ srand((size_t)time(0)); ]. Since it's the more acceptable (not perfect) way of feeding a seeder, putting a constant as an argument really doesn't make sense. So, keep it intact and try to work with rand() function to producing a different kind of randomization like generating only odd or even numbers etc. FYI, see [https://stackoverflow.com/questions/322938/recommended-way-to-initialize-srand]
5th Oct 2017, 8:33 PM
Babak
Babak - avatar