© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
6 replies
Kaoruko Waguri

So I'm making a slot machine for my homework [Answered]

If the user gets three cherries, they will score 100 points. I coded it as (RandomNumbers1 == 1 && RandomNumbers2 == 1 && RandomNumbers3 == 1). but every time I run the code, only one or occasionally two images appear, leading me to believe that I may have made a coding mistake to the RandomNumbers. I'm trying to figure out how I can make a variable that has just the numbers; for example, "int cherries = 1, 1, 1" didn't work.
image.png
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Making a Vending Machine for Class!
C#CC# / help
3y ago
Homework for me
C#CC# / help
16mo ago
❔ homework
C#CC# / help
3y ago