From 2015e23667823f35e8346994c351c5a7198e38a4 Mon Sep 17 00:00:00 2001 From: fdai7037 Date: Wed, 8 Feb 2023 19:53:31 +0100 Subject: [PATCH] =?UTF-8?q?Die=20Zufallszahl=20f=C3=BCr=20y=20wird=20in=20?= =?UTF-8?q?einem=20vorgegebenen=20Bereich=20bestimmt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Paper-Bin.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 811c761..076296a 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -53,6 +53,11 @@ void loadLevel() { { tmpX = rand()%17; } + while (3 > tmpY) + { + tmpY = rand() % 10; + } + break;