Extreme Values and Recurrence for Deterministic and Stochastic Dynamics