From 3d8cd85e71ca09c060c5029222cf210e0d104e62 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 26 Mar 2025 14:10:47 +0100 Subject: [PATCH] docs: adding the documentation of the generate function --- cpp06/ex02/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cpp06/ex02/main.cpp b/cpp06/ex02/main.cpp index e0695d7..c207c10 100644 --- a/cpp06/ex02/main.cpp +++ b/cpp06/ex02/main.cpp @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 #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();