Click here to Skip to main content
15,904,155 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to perform find and replace with condition in C# and/or regex? Pin
Pallavi H Shinde26-Aug-20 21:16
Pallavi H Shinde26-Aug-20 21:16 
GeneralRe: How to perform find and replace with condition in C# and/or regex? Pin
Gerry Schmitz27-Aug-20 3:44
mveGerry Schmitz27-Aug-20 3:44 
QuestionC# Pin
Member 1492367126-Aug-20 7:54
Member 1492367126-Aug-20 7:54 
AnswerRe: C# Pin
OriginalGriff26-Aug-20 7:58
mveOriginalGriff26-Aug-20 7:58 
GeneralRe: C# Pin
Richard Andrew x6426-Aug-20 11:28
professionalRichard Andrew x6426-Aug-20 11:28 
AnswerRe: C# Pin
Gerry Schmitz27-Aug-20 3:54
mveGerry Schmitz27-Aug-20 3:54 
AnswerRe: C# Pin
Exoskeletor2-Sep-20 0:48
Exoskeletor2-Sep-20 0:48 
QuestionLooking for a book on C# forms Pin
Brian_TheLion25-Aug-20 21:21
Brian_TheLion25-Aug-20 21:21 
AnswerRe: Looking for a book on C# forms Pin
Richard MacCutchan25-Aug-20 21:23
mveRichard MacCutchan25-Aug-20 21:23 
GeneralRe: Looking for a book on C# forms Pin
Brian_TheLion25-Aug-20 21:35
Brian_TheLion25-Aug-20 21:35 
GeneralRe: Looking for a book on C# forms Pin
Richard MacCutchan25-Aug-20 22:25
mveRichard MacCutchan25-Aug-20 22:25 
AnswerRe: Looking for a book on C# forms Pin
OriginalGriff25-Aug-20 21:37
mveOriginalGriff25-Aug-20 21:37 
GeneralRe: Looking for a book on C# forms Pin
trønderen26-Aug-20 1:11
trønderen26-Aug-20 1:11 
GeneralRe: Looking for a book on C# forms Pin
OriginalGriff26-Aug-20 1:16
mveOriginalGriff26-Aug-20 1:16 
GeneralRe: Looking for a book on C# forms Pin
trønderen26-Aug-20 5:00
trønderen26-Aug-20 5:00 
AnswerRe: Looking for a book on C# forms Pin
trønderen26-Aug-20 0:38
trønderen26-Aug-20 0:38 
AnswerRe: Looking for a book on C# forms Pin
CHill6026-Aug-20 1:24
mveCHill6026-Aug-20 1:24 
AnswerRe: Looking for a book on C# forms Pin
Ron Nicholson26-Aug-20 2:24
professionalRon Nicholson26-Aug-20 2:24 
AnswerRe: Looking for a book on C# forms Pin
Gerry Schmitz26-Aug-20 7:16
mveGerry Schmitz26-Aug-20 7:16 
QuestionTrying to get my block program working Pin
Brian_TheLion23-Aug-20 16:56
Brian_TheLion23-Aug-20 16:56 
AnswerRe: Trying to get my block program working Pin
Gerry Schmitz23-Aug-20 17:18
mveGerry Schmitz23-Aug-20 17:18 
QuestionHow to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 21:43
Exoskeletor22-Aug-20 21: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 21:47
mveOriginalGriff22-Aug-20 21:47 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor22-Aug-20 21:51
Exoskeletor22-Aug-20 21:51 
GeneralRe: How to calculate in c# the possibility of this game Pin
OriginalGriff22-Aug-20 22:01
mveOriginalGriff22-Aug-20 22:01 

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.