We study the effect of external noise on resistive switching. Experimental results on a manganite sample are presented showing that there is an optimal noise amplitude that maximizes the contrast between high and low resistive states. By means of numerical simulations, we study the causes underlying the observed behavior. We find that experimental results can be related to general characteristics of the equations governing the system dynamics.