Comment

Comment by imh

One way to generate a sequence of heads and tails is to start with either heads or tails, then randomly choose how many of those to use before switching to the other. You're sampling the length of runs. e.g. Heads, then choosing 12113 would translate to HTTHTHHH.

It feels easier to ditch some of my biases generating a sequence this way.

parent imh 7 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton