title: Algorithm to distribute bits evenly but with increasing density
body: <p>I'm looking for an algorithm to generate a series of bits such that the density at the start of the series is very low (i.e. mostly 0s), and by the end of the series is very high (i.e. mostly 1s). I've got this to work by varying the probability that a random number would fall within a range, but I'd like to find a more structured [read: deterministic] algorithm, like some sort of way to steadily increase the density of 1s.</p>
  
  <p>Does anyone know of something similar? Or perhaps some reading on such topics? It's proving to be quite fun to think about but also rather challenging (unless I'm missing something simple)!</p>