docs: adding the documentation of the generate function
This commit is contained in:
parent
62a2eb5e90
commit
3d8cd85e71
1 changed files with 6 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/26 11:58:38 by rparodi #+# #+# */
|
||||
/* Updated: 2025/03/26 14:04:34 by rparodi ### ########.fr */
|
||||
/* Updated: 2025/03/26 14:10:19 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -20,6 +20,11 @@
|
|||
#include <typeinfo>
|
||||
#include "color.hpp"
|
||||
|
||||
/**
|
||||
* @brief Generate a random class (A / B / C)
|
||||
*
|
||||
* @return the pointer to the class
|
||||
*/
|
||||
Base* generate(void) {
|
||||
std::srand(std::time(NULL));
|
||||
int choice = std::rand();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue