[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.9859856 [View]
File: 49 KB, 665x574, 1524410897614.jpg [View same] [iqdb] [saucenao] [google]
9859856

i know a you can't call half of diplococci living being but then a living being is made out of cells.
what does this imply ?

>> No.9411389 [View]
File: 49 KB, 665x574, 1514860580876.jpg [View same] [iqdb] [saucenao] [google]
9411389

>>9403178
Well, one wants to have sex with (you) and the other doesn't?

>> No.9296895 [View]
File: 49 KB, 665x574, 1510339420761.jpg [View same] [iqdb] [saucenao] [google]
9296895

0.99999.... = 1
Prove me wrong
>Protip: you can't

>> No.9267133 [View]
File: 49 KB, 665x574, 1505413486144.jpg [View same] [iqdb] [saucenao] [google]
9267133

I'm writing a game and I need to make this function more efficient:

int coinFlips(int coinFlips) {
var heads = 0;

for (var i = 0; i < coinFlips; i++) {
if (randomBool) heads++;
}

return heads;
}

basically, it's doing a bunch of coin flips and returns the number of heads. that's binomial distribution, but when i look that up i just the function for the probability for the results being all heads.

is there a name for the coinFlip(x) function i've written?

Navigation
View posts[+24][+48][+96]