67 points

the simulation in question:

for (int i = 0; i < 80000; i++) {
   if (rand() % 2 == 0) {
      printf("Kamala wins\n");
   }
   else {
      printf("Trump wins\n");
   }
}
permalink
report
reply

This is much cleaner than mine that I did in python.

permalink
report
parent
reply
39 points

thanks. Nate Silver paid me $50k to write this

permalink
report
parent
reply
13 points

could you please input that into chatgpt so it will give me a summary of the code output? I’m a busy data driven guy so I don’t have time for the details. however, I do have time for this post

permalink
report
parent
reply
12 points

Hey! I understood that! That Python class must’ve taught me something after all.

permalink
report
parent
reply
7 points

I’m guessing it literally is a few lines in R, plugging in the polling data after running it through a “model” (i.e. tinkering with the variables based on how polls have historically translated into votes)

permalink
report
parent
reply
8 points

huh, the sync for Lemmy code block renderer doesn’t show the \ even within the code block 👁️👁️

permalink
report
parent
reply
8 points
*

Seems lots of unnecessary mods tbh,

S=0

for i in 1:80000

S+=rand()

end

ceil(S)

permalink
report
parent
reply
6 points

Modding by 2 is just a bitwise operation tho

permalink
report
parent
reply
2 points
*

Gotta dump results in some accumulate tho, and if then logic might be eh (although with branch prediction it might be auto 2 threads actually or similar utilization at least)

permalink
report
parent
reply

permalink
report
reply

won in 42,069

permalink
report
reply

big “i do numbers” energy

permalink
report
reply

I ran 80,000 simulations of me taking a poop

In 40,000 of them, shit ran down my ballsack and then I had shit on my balls.

permalink
report
reply
11 points

In 32 of them, I sneezed in the middle of a stream of diarrhea and covered the entire backside of the toilet.

permalink
report
parent
reply
13 points

permalink
report
parent
reply

The Dredge Tank

!dredge_tank@hexbear.net

Create post

The Dredge Tank. For posting all the low tier reactionary bullshit that you can’t post anywhere else. Got some bullshit from Reddit with 2 upvotes and want to share, post it here.

This community was created with the purpose that Rule 8 fans will just block it.

The rules are literally The Dunk Tank’s rules, just without rule 8.

Rule 1: All posts must include links to the subject matter, and no identifying information should be redacted.

Rule 2: If your source is a reactionary website, please use archive.is instead of linking directly.

Rule 3: No sectarianism.

Rule 4: TERF/SWERFs Not Welcome

Rule 5: No ableism of any kind (that includes stuff like libt*rd)

Rule 6: Do not post fellow hexbears.

Rule 7: Do not individually target other instances’ admins or moderators.

Community stats

  • 1.8K

    Monthly active users

  • 526

    Posts

  • 10K

    Comments