© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
4y ago
•
2 replies
Moji
Tested it a lot of times but still giving unexpected error
using System
;
class Program
{
public static void Main
(string
[
] args
)
{
Random numGen
= new Random
(
)
;
public int generatedNum
= numGen
.Next
(0
, 64
)
;
Console
.WriteLine
(generatedNum
)
;
}
}
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
✅ I TRIED SO MANY TIMES BUT STILL ERROR ;(((((((((
C
C# / help
14mo ago
❔ dotnet build quiet still showing a lot of warnings
C
C# / help
4y ago
Stopwatch not giving accurate times
C
C# / help
3y ago
✅ `unexpected symbol switch` error
C
C# / help
3y ago