Comment

Comment by deadbeef404

> doesnt result in a truely random distribution.

It evenly distributes over 0-1. Removing .5, just distributes it evenly between -0.5 and +0.5. Sort basically says >0, the first option should come first and if <0, the second option should come first.

I believe this still maintains a random distribution and is quite a tidy solution. Thoughts?

parent deadbeef404 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton