The concept of tortuosity of fluid flow in porous media is discussed. A lattice-gas cellular automaton methol is applied to solve the flow of a Newtonian uncompressible fluid in a two-dimensional porous substance constructed by randomly placed rectangles of equal size and with unrestricted overlap. A clear correlation between the average tortuosity of the flow paths and the porosity of the substance has been found.