15,961,851 members
Home / Discussions / C#

C#

 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 22:33 OriginalGriff 22-Aug-20 22:33
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 22:37 Exoskeletor 22-Aug-20 22:37
 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 22:43 OriginalGriff 22-Aug-20 22:43
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 22:57 Exoskeletor 22-Aug-20 22:57
 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 23:05 OriginalGriff 22-Aug-20 23:05
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 23:28 Exoskeletor 22-Aug-20 23:28
 Re: How to calculate in c# the possibility of this game Luc Pattyn23-Aug-20 12:51 Luc Pattyn 23-Aug-20 12:51
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 13:01 Exoskeletor 23-Aug-20 13: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 13:03 Luc Pattyn 23-Aug-20 13:03
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 13:06 Exoskeletor 23-Aug-20 13:06
 Re: How to calculate in c# the possibility of this game trønderen23-Aug-20 13:28 trønderen 23-Aug-20 13:28
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 13:33 Exoskeletor 23-Aug-20 13:33
 Re: How to calculate in c# the possibility of this game Luc Pattyn23-Aug-20 15:57 Luc Pattyn 23-Aug-20 15:57
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 0:35 Exoskeletor 24-Aug-20 0:35
 Re: How to calculate in c# the possibility of this game Richard MacCutchan24-Aug-20 1:04 Richard MacCutchan 24-Aug-20 1:04
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 1:10 Exoskeletor 24-Aug-20 1:10
 Re: How to calculate in c# the possibility of this game Eddy Vluggen24-Aug-20 12:52 Eddy Vluggen 24-Aug-20 12:52
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 23:22 Exoskeletor 24-Aug-20 23:22
 Re: How to calculate in c# the possibility of this game Luc Pattyn24-Aug-20 7:48 Luc Pattyn 24-Aug-20 7:48
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 23:22 Exoskeletor 24-Aug-20 23:22
 Re: How to calculate in c# the possibility of this game trønderen26-Aug-20 0:50 trønderen 26-Aug-20 0:50
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 19:23 Exoskeletor 23-Aug-20 19:23
 How do I load a block on a form at startup Brian_TheLion22-Aug-20 18:56 Brian_TheLion 22-Aug-20 18:56
 Re: How do I load a block on a form at startup BillWoodruff22-Aug-20 19:12 BillWoodruff 22-Aug-20 19:12
 Re: How do I load a block on a form at startup OriginalGriff22-Aug-20 20:48 OriginalGriff 22-Aug-20 20:48
 Last Visit: 31-Dec-99 18:00     Last Update: 7-Aug-24 23:41 Refresh ᐊ Prev1...190191192193194195196197198199 Next ᐅ