Click here to Skip to main content
15,897,518 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: TWCP OTD - 15th of March, 2017 Pin
Kornfeld Eliyahu Peter15-Mar-17 10:20
professionalKornfeld Eliyahu Peter15-Mar-17 10:20 
GeneralRe: TWCP OTD - 15th of March, 2017 Pin
Jon McKee15-Mar-17 10:34
professionalJon McKee15-Mar-17 10:34 
GeneralRe: TWCP OTD - 15th of March, 2017 Pin
Kornfeld Eliyahu Peter15-Mar-17 10:49
professionalKornfeld Eliyahu Peter15-Mar-17 10:49 
GeneralRe: TWCP OTD - 15th of March, 2017 Pin
Jon McKee15-Mar-17 11:37
professionalJon McKee15-Mar-17 11:37 
GeneralRe: TWCP OTD - 15th of March, 2017 Pin
PIEBALDconsult15-Mar-17 10:54
mvePIEBALDconsult15-Mar-17 10:54 
GeneralRe: TWCP OTD - 15th of March, 2017 Pin
Kornfeld Eliyahu Peter15-Mar-17 11:17
professionalKornfeld Eliyahu Peter15-Mar-17 11:17 
GeneralRe: TWCP OTD - 15th of March, 2017 Pin
PIEBALDconsult15-Mar-17 11:24
mvePIEBALDconsult15-Mar-17 11:24 
GeneralRe: TWCP OTD - 15th of March, 2017 Pin
CDP180215-Mar-17 11:43
CDP180215-Mar-17 11:43 
PIEBALDconsult wrote:
There are 36 outcomes from rolling 2 standard dice, and only 8 of them are winners.

How did you get 8 winning combinations? If the first die already wins (in twqo out of six cases), the second one is irrelevant in any case. These already are twelve winning combinations. And then those cases where the first die 'misses', but the second one wins are added.

Chance that the first one wins: 2/6.
Chance that the first one mises, bt the second one wins: 4/6 * 2/6 = 8/36 (probably what you thought)
Total chance 2/6 + 8/36 = 12/36 + 8 /36 = 20/36 = 0,56 (rounded).

PIEBALDconsult wrote:
There are 216 outcomes from rolling 3 standard dice, and only 7 of them are winners.

Similar calculation:
Chance that the first one already wins: 1/6
Chance that the second one wins if the first fails: 5/6 * 1/6 = 5/36
Chance that the third one winds when the first two fail: 5/6 * 5/6 * 1/6 = 25/216
Adding it all up: 1/6 + 5/36 + 25/216 = (36 + 30 + 25) / 216 = 71/216 = 0,33 (rounded).
The language is JavaScript. that of Mordor, which I will not utter here

This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.

"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."

If software development were a circus, we would all be the clowns.

GeneralRe: TWCP OTD - 15th of March, 2017 Pin
PIEBALDconsult15-Mar-17 11:46
mvePIEBALDconsult15-Mar-17 11:46 
GeneralRe: TWCP OTD - 15th of March, 2017 Pin
Jon McKee15-Mar-17 17:06
professionalJon McKee15-Mar-17 17:06 
GeneralRe: TWCP OTD - 15th of March, 2017 Pin
CDP180215-Mar-17 20:33
CDP180215-Mar-17 20:33 
GeneralEver have one of those days? Pin
TonyManso15-Mar-17 7:21
professionalTonyManso15-Mar-17 7:21 
GeneralRe: Ever have one of those days? Pin
Mike Hankey15-Mar-17 8:04
mveMike Hankey15-Mar-17 8:04 
JokeRe: Ever have one of those days? Pin
Cornelius Henning15-Mar-17 11:37
professionalCornelius Henning15-Mar-17 11:37 
GeneralRe: Ever have one of those days? Pin
Mike Hankey15-Mar-17 14:53
mveMike Hankey15-Mar-17 14:53 
GeneralThe feeling of conquest Pin
kmoorevs15-Mar-17 7:06
kmoorevs15-Mar-17 7:06 
GeneralRe: The feeling of conquest Pin
Marc Clifton15-Mar-17 7:14
mvaMarc Clifton15-Mar-17 7:14 
GeneralRe: The feeling of conquest Pin
kmoorevs15-Mar-17 7:44
kmoorevs15-Mar-17 7:44 
GeneralMicrosoft, microsoft, microsoft...that's not a good start, chaps. Pin
OriginalGriff15-Mar-17 6:34
mveOriginalGriff15-Mar-17 6:34 
GeneralRe: Microsoft, microsoft, microsoft...that's not a good start, chaps. Pin
Joe Woodbury15-Mar-17 7:10
professionalJoe Woodbury15-Mar-17 7:10 
GeneralRe: Microsoft, microsoft, microsoft...that's not a good start, chaps. Pin
Cornelius Henning15-Mar-17 7:38
professionalCornelius Henning15-Mar-17 7:38 
GeneralRe: Microsoft, microsoft, microsoft...that's not a good start, chaps. Pin
OriginalGriff15-Mar-17 8:58
mveOriginalGriff15-Mar-17 8:58 
GeneralRe: Microsoft, microsoft, microsoft...that's not a good start, chaps. Pin
Kornfeld Eliyahu Peter15-Mar-17 8:14
professionalKornfeld Eliyahu Peter15-Mar-17 8:14 
GeneralRe: Microsoft, microsoft, microsoft...that's not a good start, chaps. Pin
Jeremy Falcon15-Mar-17 8:16
professionalJeremy Falcon15-Mar-17 8:16 
GeneralRe: Microsoft, microsoft, microsoft...that's not a good start, chaps. Pin
Richard Deeming15-Mar-17 9:14
mveRichard Deeming15-Mar-17 9:14 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   136 votes