Contact and dispersive forces are important in the design of Micro Electro Mechanical Systems (MEMS). The influence of random surface roughness of Au films on capillary and Casimir forces is explored with atomic force microscopy in the plane-sphere geometry. In case of the Casimir force the experimental results are confronted to theoretical predictions for plane-sphere separations ranging between 20 and 200 nm. The optical response and roughness of the Au films were measured and used as input in calculations of the Casimir force. It is found that at separations below 100 nm the roughness effect manifests itself through a strong deviation from the usual scaling of the force as a function of distance. The difference with predictions based on ...