Skip to content

Commit 438aa24

Browse files
committed
oopsies
1 parent 4dc2d43 commit 438aa24

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Example.Main();

snippets/csharp/System/Random/Overview/next3.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using System;
2-
3-
public class Example
1+
public class Example
42
{
53
public static void Main()
64
{
75
// <Snippet5>
86
Console.WriteLine("Generating 10 random numbers:");
97

8+
Random rnd = new();
9+
1010
for (uint ctr = 1; ctr <= 10; ctr++)
1111
Console.WriteLine($"{rnd.Next(),15:N0}");
1212

snippets/csharp/System/Random/Overview/project.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<OutputType>Library</OutputType>
4+
<OutputType>exe</OutputType>
55
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)