Moved std::mt19937 construction out of c-api andin into Puzzle class.