Hi guys. i wanted to write class Sudoku.here: std::mt19937 generator(std::time(0)); std::uniform_int_distribution<int> distribution(0, 8);these two are giving me errors. what is the problem?
std::mt19937 generator(std::time(0)); std::uniform_int_distribution<int> distribution(0, 8);
— Send the error?
— It says "function time is not found"
— What kind of error?
— It seem to be you use outdate library, i guess boost-asio
— That not support random generator
— #include <ctime>
— I have included. when i use it in the man function it works, inside the class it does not
— Also i dont think its part of std so it should just be time(0) as its defined in ctime
— Time is not defined in std namespace, should be just time(0)
— I corrected, but still...