Use Random in C++
· â 1 min read · âī¸ k4i
introduce randomness into your C++ programs, the right way.
Smart pointer is a practice of RAII (Resource Acquisition is Initialization), we use a smart pointer to manage memory allocated on the heap. (here the “resource” is the allocated heap memory)