How random can you be?
Given the implementation, an interesting way to cheat is to use de Bruijn sequences [1].  B(2,5) is 00000100011001010011101011011111, so using this sequence means that you will cycle through all possible 5-grams, and thus make lots of money.<p>Ah, should have read more carefully -- it's using 5-grams as the base, not as the model, so really it's 6-grams, so we need B(2,6). We can try 0000001000011000101000111001001011001101001111010101110110111111<p>[1] <a href="https://en.wikipedia.org/wiki/De_Bruijn_sequence" rel="nofollow">https://en.wikipedia.org/wiki/De_Bruijn_sequence</a>