Since Ian Livingstone books can be said to have a formula, I have started a Google Sheet entitled The LivingStone Algorithm - it will be designed to randomly pick elements of Ian Livingstone's books and mash them together to make the plan of a new book (which you can then write the prose for).
If anyone would like to edit it, the link is here: