tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code03:33

C# random numbers 🎲

Bro Code ↗

From the creator

C# generate random numbers tutorial example explained #C# #random #numbers using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { Random random = new Random(); int num1 = random.Next(1, 7); int num2 = random.Next(1, 7); int num3 = random.Next(1, 7); //double num = random.NextDouble(); Console.WriteLine(num1); Console.WriteLine(num2); Console.WriteLine(num3); Console.ReadKey(); } } }

Published 2021-07-03 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code