News for hackers. Stuff that matters.
Re:I tried to report scientific misconduct. How did it go? by redis_mlc on Wednesday January 27, 2021 @01:28AM (#25924984)
> This actually cannot happen with random assignment either. The only way you're going to get equal numbers in each bin is if your process is intentionally constrained to do that.

There are several CS shuffle/Fisher-Yates algorithms that can do this. Instead of calling the usual rand() on a mathematical interval multiple times, they do selection over the remaining elements (ie. constrained.)

https://dev.to/babak/an-algorithm-for-picking-random-numbers...

But I would expect CS people to have awareness about that, not social scientists, unless somebody wrote a paper with examples for that field.

I've seen Fisher-Yates used in an SRE interview before, which is pedantic - it's just whiteboard hazing, at a very high cost to your recruiting and interviewing staff.

There are no comments on this comment yet.