Click here to Skip to main content
15,794,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looking for a book on C# forms Pin
trønderen26-Aug-20 6:00
trønderen26-Aug-20 6:00 
AnswerRe: Looking for a book on C# forms Pin
trønderen26-Aug-20 1:38
trønderen26-Aug-20 1:38 
AnswerRe: Looking for a book on C# forms Pin
CHill6026-Aug-20 2:24
mveCHill6026-Aug-20 2:24 
AnswerRe: Looking for a book on C# forms Pin
Ron Nicholson26-Aug-20 3:24
professionalRon Nicholson26-Aug-20 3:24 
AnswerRe: Looking for a book on C# forms Pin
Gerry Schmitz26-Aug-20 8:16
mveGerry Schmitz26-Aug-20 8:16 
QuestionTrying to get my block program working Pin
Brian_TheLion23-Aug-20 17:56
Brian_TheLion23-Aug-20 17:56 
AnswerRe: Trying to get my block program working Pin
Gerry Schmitz23-Aug-20 18:18
mveGerry Schmitz23-Aug-20 18:18 
QuestionHow to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 22:43
Exoskeletor22-Aug-20 22:43 
Im trying to create an app to calculate the posibilities of a game.
In the game every time we play, from 80 numbers only 20 of them are randomly selected and from the 80 numbers i can select maximum 12 of them that they might win.
I want to calculate the posibility to have select the winning x numbers from my selected numbers. (I mean if i have selected 10 numbers and the 7 of them win i want the percentage possibility for that.)

I know that the type to check that is: Ρ(y,x) = (y per x)*(80-y per 20-x)/ (80 per 20) where y are the numbers i have selected to play and x are the numbers that won. How i can convert that to c#?
thanks
AnswerRe: How to calculate in c# the possibility of this game Pin
OriginalGriff22-Aug-20 22:47
mvaOriginalGriff22-Aug-20 22:47 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 22:51
Exoskeletor22-Aug-20 22:51 
GeneralRe: How to calculate in c# the possibility of this game Pin
OriginalGriff22-Aug-20 23:01
mvaOriginalGriff22-Aug-20 23:01 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 23:04
Exoskeletor22-Aug-20 23:04 
GeneralRe: How to calculate in c# the possibility of this game Pin
OriginalGriff22-Aug-20 23:13
mvaOriginalGriff22-Aug-20 23:13 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 23:31
Exoskeletor22-Aug-20 23:31 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 23:32
Exoskeletor22-Aug-20 23:32 
GeneralRe: How to calculate in c# the possibility of this game Pin
OriginalGriff22-Aug-20 23:33
mvaOriginalGriff22-Aug-20 23:33 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 23:37
Exoskeletor22-Aug-20 23:37 
GeneralRe: How to calculate in c# the possibility of this game Pin
OriginalGriff22-Aug-20 23:43
mvaOriginalGriff22-Aug-20 23:43 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 23:57
Exoskeletor22-Aug-20 23:57 
GeneralRe: How to calculate in c# the possibility of this game Pin
OriginalGriff23-Aug-20 0:05
mvaOriginalGriff23-Aug-20 0:05 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor23-Aug-20 0:28
Exoskeletor23-Aug-20 0:28 
GeneralRe: How to calculate in c# the possibility of this game Pin
Luc Pattyn23-Aug-20 13:51
sitebuilderLuc Pattyn23-Aug-20 13:51 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor23-Aug-20 14:01
Exoskeletor23-Aug-20 14:01 
GeneralRe: How to calculate in c# the possibility of this game Pin
Luc Pattyn23-Aug-20 14:03
sitebuilderLuc Pattyn23-Aug-20 14:03 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor23-Aug-20 14:06
Exoskeletor23-Aug-20 14:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.