From c9ac43a3cb6044e7addb3ede9923ef694d5948e5 Mon Sep 17 00:00:00 2001 From: Celine Khazarian Date: Thu, 8 Feb 2024 23:17:16 +0100 Subject: [PATCH] Int Modus 1 random Zahl C 2 --- src/main/c/SchereSteinPapier.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/c/SchereSteinPapier.c b/src/main/c/SchereSteinPapier.c index a92f7cd..9e67570 100644 --- a/src/main/c/SchereSteinPapier.c +++ b/src/main/c/SchereSteinPapier.c @@ -32,5 +32,7 @@ int Modus1() { char you = 'Y', computer, Lösung; srand(time(NULL)); n = rand() % 100; - + if (n < 33) { + computer = '2'; + } } \ No newline at end of file