Click here to Skip to main content
14,743,190 members
Home » Discussions » C#
   

C#

 
GeneralRe: Looking for a book on C# forms Pin
trønderen26-Aug-20 6:00
Membertrønderen26-Aug-20 6:00 
AnswerRe: Looking for a book on C# forms Pin
trønderen26-Aug-20 1:38
Membertrø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
MemberBrian_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
MemberExoskeletor22-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
mveOriginalGriff22-Aug-20 22:47 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 22:51
MemberExoskeletor22-Aug-20 22:51 
GeneralRe: How to calculate in c# the possibility of this game Pin
OriginalGriff22-Aug-20 23:01
mveOriginalGriff22-Aug-20 23:01 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 23:04
MemberExoskeletor22-Aug-20 23:04 
GeneralRe: How to calculate in c# the possibility of this game Pin
OriginalGriff22-Aug-20 23:13
mveOriginalGriff22-Aug-20 23:13 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 23:31
MemberExoskeletor22-Aug-20 23:31 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 23:32
MemberExoskeletor22-Aug-20 23:32 
GeneralRe: How to calculate in c# the possibility of this game Pin
OriginalGriff22-Aug-20 23:33
mveOriginalGriff22-Aug-20 23:33 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 23:37
MemberExoskeletor22-Aug-20 23:37 
GeneralRe: How to calculate in c# the possibility of this game Pin
OriginalGriff22-Aug-20 23:43
mveOriginalGriff22-Aug-20 23:43 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 23:57
MemberExoskeletor22-Aug-20 23:57 
GeneralRe: How to calculate in c# the possibility of this game Pin
OriginalGriff23-Aug-20 0:05
mveOriginalGriff23-Aug-20 0:05 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor23-Aug-20 0:28
MemberExoskeletor23-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
MemberExoskeletor23-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
MemberExoskeletor23-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.