From 90fb709f37c1b9ab6660895e3fea9749eb297b56 Mon Sep 17 00:00:00 2001 From: Christian Reum Date: Tue, 6 Feb 2024 17:52:15 +0100 Subject: [PATCH] =?UTF-8?q?refactoring=206:=20Ausgabe=20Eingabe=20Nummern?= =?UTF-8?q?=20und=20entfernen=20unn=C3=B6tiger=20srand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/wwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wwm.c b/src/wwm.c index bf1507e..1f705f8 100644 --- a/src/wwm.c +++ b/src/wwm.c @@ -27,6 +27,7 @@ int crandomNumber() { void wwm(){ printf("Welcome to ´Who wants to be a millionaire?´ \n"); + printf("Choose your answer with the numbers 1-4! \n"); const char* question[] = { "Which planet is known as the `blue planet`?", @@ -68,7 +69,6 @@ void wwm(){ printf("__________________________________________________ \n\n"); printf("You are at stage %d and have %d $\n", runde, geld); - srand(time(0)); crandomNumber(); printf("Question %d: %s\n", runde + 1, question[frage]);