Random Functions and Hydrology