A stochastic method to determine the shape of a drop on a wall