<SPOILER>
On Wed, Feb 21, 2007 at 07:50:09PM +0900, rretzbach / googlemail.com wrote:
>   So far the only perfect "algo" that came to my mind was to create
> all possible books and chose one randomly.

Directly enumerating all possible patterns for an individual ticket is
certainly doable. There are 735,210.

This means that the simple set of 'all possible books' is enormous, but
there may be some way to fold it to a manageable size. I look forward with
interest to seeing the solutions in this area :-)
</SPOILER>