From 397dac017159cd00334118f6178e39a2f2425be8 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Sat, 11 Apr 2026 11:40:45 +0700 Subject: [PATCH] Random Dice --- Form1.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Form1.cs b/Form1.cs index b22bbe8..7a266d8 100644 --- a/Form1.cs +++ b/Form1.cs @@ -5,6 +5,10 @@ namespace GuessTheCard public Form1() { InitializeComponent(); + + Random random = new Random(); + int randomDice = random.Next(1, 7); + labelCard.Text = "Result : " + randomDice; } } }