Show HN: Phyics-Based Dice Roller (dice.jswidler.com)

1 points by swid ↗ HN
Yes it is a vibe-coded static site, but I'll share it anyway since people have liked it and actually seem to be using it as I would have intended. For me, it was just sad I couldn't find a good free dice rolling app... I couldn't find this version and the ones I did find were covered with ads. I won't put ads in this one and have no costs to cover since it's hosted on GitHub pages.

1 comment

[ 4.4 ms ] story [ 7.4 ms ] thread
Have you analysed the fairness of the rolls? Just after a quick play around it doesn't look like there is enough energy in the throws that I would be confident it is.

10,000 throws with small perturbations in the starting conditions should be distributed evenly across all sides of the die.

Alternatively you could use RNG to generate a fair result, simulate the throw, and then set the sides of the die to produce the result from RNG. This is all academic though and I imagine anyone using the site won't be bothered.