Search
Setup for Free
C
C#
im trying to make rock paper scissors but the robot never chooses scisors for some reason
Original message was deleted
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,156
Members
View on Discord
Similar Threads
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Original message was deleted
J
Jimmacle
•
5/11/24, 11:01 PM
the documentation for Random
.Next
(int
, int
) tells you that the upper bound is exclusive
:
https://learn.microsoft.com/en-us/dotnet/api/system.random.next?view=net-8.0#system-random-next(system-int32-system-int32
)
Random.Next Method (System)
Returns a random integer
.
J
Jimmacle
•
5/11/24, 11:01 PM
so
Random.Next(1, 3)
Random.Next(1, 3)
will give you either 1 or 2
, never 3
C
ComfyKat
•
5/12/24, 3:41 PM
thx
Random.Next(1, 3)
Random.Next(1, 3)
Similar Threads
Rock Paper Scissors error
C
C# / help
8mo ago
✅ rock paper scissors game
C
C# / help
3y ago
I built a rock paper scissors game but it always returns a draw. can anyone help me?
C
C# / help
3y ago