15,566,691 members
Home / Discussions / C#

# C#

 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 23:33 OriginalGriff 22-Aug-20 23:33
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 23:37 Exoskeletor 22-Aug-20 23:37
 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 23:43 OriginalGriff 22-Aug-20 23:43
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 23:57 Exoskeletor 22-Aug-20 23:57
 Re: How to calculate in c# the possibility of this game OriginalGriff23-Aug-20 0:05 OriginalGriff 23-Aug-20 0:05
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 0:28 Exoskeletor 23-Aug-20 0:28
 Re: How to calculate in c# the possibility of this game Luc Pattyn23-Aug-20 13:51 Luc Pattyn 23-Aug-20 13:51
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 14:01 Exoskeletor 23-Aug-20 14:01
 Right now im at this: ```private int CalculateProbabilityOfDrawNumbersFromAllNumbers(int drawNumbers, int allNumbers) { return ((Factorial(allNumbers) * Factorial(80 - allNumbers)) / (((Factorial(80) * ((Factorial(drawNumbers) * Factorial(allNumbers - drawNumbers)) * (Factorial(20 - drawNumbers) * Factorial(((80 - allNumbers) - (20 - drawNumbers)))))) / (Factorial(20) * Factorial(80 - 20))))); } private static int Factorial(int x) { int f = 1; while (x > 1) { f *= x--; } return f; } ``` which gives division by zero and i try to understand if something have gone wrong with all those parenthesis
 Re: How to calculate in c# the possibility of this game Luc Pattyn23-Aug-20 14:03 Luc Pattyn 23-Aug-20 14:03
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 14:06 Exoskeletor 23-Aug-20 14:06
 Re: How to calculate in c# the possibility of this game trønderen23-Aug-20 14:28 trønderen 23-Aug-20 14:28
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 14:33 Exoskeletor 23-Aug-20 14:33
 Re: How to calculate in c# the possibility of this game Luc Pattyn23-Aug-20 16:57 Luc Pattyn 23-Aug-20 16:57
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 1:35 Exoskeletor 24-Aug-20 1:35
 Re: How to calculate in c# the possibility of this game Richard MacCutchan24-Aug-20 2:04 Richard MacCutchan 24-Aug-20 2:04
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 2:10 Exoskeletor 24-Aug-20 2:10
 Re: How to calculate in c# the possibility of this game Eddy Vluggen24-Aug-20 13:52 Eddy Vluggen 24-Aug-20 13:52
 Re: How to calculate in c# the possibility of this game Exoskeletor25-Aug-20 0:22 Exoskeletor 25-Aug-20 0:22
 Re: How to calculate in c# the possibility of this game Luc Pattyn24-Aug-20 8:48 Luc Pattyn 24-Aug-20 8:48
 Re: How to calculate in c# the possibility of this game Exoskeletor25-Aug-20 0:22 Exoskeletor 25-Aug-20 0:22
 Re: How to calculate in c# the possibility of this game trønderen26-Aug-20 1:50 trønderen 26-Aug-20 1:50
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 20:23 Exoskeletor 23-Aug-20 20:23
 How do I load a block on a form at startup Brian_TheLion22-Aug-20 19:56 Brian_TheLion 22-Aug-20 19:56
 Re: How do I load a block on a form at startup BillWoodruff22-Aug-20 20:12 BillWoodruff 22-Aug-20 20:12
 Re: How do I load a block on a form at startup OriginalGriff22-Aug-20 21:48 OriginalGriff 22-Aug-20 21:48
 Last Visit: 31-Dec-99 19:00     Last Update: 5-Feb-23 17:12 Refresh ᐊ Prev1...146147148149150151152153154155 Next ᐅ