Skip to content

Inaccurate Ball Physics #24

@Sam-Belliveau

Description

@Sam-Belliveau

I have been using this code:

for (var i = 0; i < 1000; ++i) {
    document.querySelector("body > div > div.relative.flex.min-h-dvh.w-full.flex-col > div > div > div > div.flex.flex-col.gap-5.bg-slate-700.p-3.lg\\:max-w-80 > button").click()
}

to drop thousands of 1 dollar balls and I notice that the average return is positive. This means that balls are not falling along a normal distribution.

What plinko does is calculate which bucket it should land in before using a standard binomial distribution. (i believe they generate 16 bits and count the 1's) and then they play an animation of a ball landing in that bucket.

i.e. they record millions of balls falling and categorize what bucket they fell into so they can play it back when that bucket is selected by the more accurate random number generator.

using physics to do the randomness leads to inaccurate returns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions