Theory of Random Functions Volume 1