Hacker News new | ask | show | jobs
by ptoo 1378 days ago
My solution was to generate random sentences in my head. I then iterate through the letters of each sentence, and if the letter is M or later in the alphabet, I select right. If the letter is before M in the alphabet I select left.
5 comments

According to English letter frequencies [1] that gives a right probability of 3.0129+6.6544+7.1635+3.1671+0.1962+7.5809+5.7351+6.9509+3.6308+1.0074+1.2899+0.2902+1.7779+0.2722 = 48.7294 % even though you summed 14 of the 26 letters (a 13-13 split would lower the probability to 45.7165%).

[1] https://www3.nd.edu/~busiforc/handouts/cryptography/letterfr...

I wonder if the patterns of letters in English language usage would still yield predictable patterns of left-and-right. Like naively 'the' is more common than 'zzz', so right-left-left may be more common than right-right-right.
That's likely to introduce bias because the probability of the two halves aren't equal... My initial instinct would be that the latter half would be less likely (since it has Q, X, Z), but maybe not - as a rule of thumb the most common letters are ETAOIN SHURDL - so 6 from the second half, and 6 from the first.
They minimized bias already by splitting 12-14, see my other comment.
I mentally labeled my pulse as left... right... left... right... and whenever I blinked I took that direction. The tricky part is not thinking about what should be next. It's also a slow way to play, but I was winning until I clicked randomize!
This was a nice way to generate random numbers fast! My go-to method is the second hand on the clock, but that's of course highly autocorrelated if you need numbers quickly.
Try it alternating/ varying musical time signatures.