How can I make it where there's a % chance of something happening? C# Language | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I make it where there's a % chance of something happening? C# Language

Im making a game thats in the console and idk how to make somthing have a %chance of being possible

3rd Mar 2019, 10:50 PM
SpacedOut
SpacedOut - avatar
3 Answers
+ 2
SpacedOut The same logic from Jay's comment can be applied to C# to get the same result, so all you would really need to do is tweak it to make it do what you want in the language you need it to work in
4th Mar 2019, 2:29 AM
Faisal
Faisal - avatar
0
I need this for c#
3rd Mar 2019, 11:45 PM
SpacedOut
SpacedOut - avatar
0
Yeah but im a new coder (started 3 days ago) so i dont understand it very well
4th Mar 2019, 3:33 AM
SpacedOut
SpacedOut - avatar