Vending (or "automatic retailing" as it is increasingly known) has a long history. The Greek mathematician Hero seems to have got the ball rolling in 215BC, when he invented a machine to vend holy water in Egyptian temples.