I think that was Hitchikers Guide to the Galaxy.....
:o It was many years ago. Thanks for the correction.