We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5719efb commit 1716e50Copy full SHA for 1716e50
Random Number/random.cs
@@ -0,0 +1,25 @@
1
+using System;
2
+
3
+namespace RandomNumber
4
+{
5
+ class Program
6
+ {
7
+ static void Main(string[] args)
8
9
+ Random random = new Random();
10
11
+ // Generate Random Number
12
+ int num = random.Next();
13
14
+ // Generate Number < 1000
15
+ int numLess1000 = random.Next(1000);
16
17
+ // Generate Number between a MIN & MAX Value
18
+ int numMinMax = random.Next(10, 99);
19
20
+ Console.WriteLine($" Random Number: {num} \n Less than 1000: {numLess1000} \n Min Max: {numMinMax} ");
21
22
+ Console.ReadLine();
23
+ }
24
25
+}
0 commit comments