Randomness and dimension in computational learning and analog computation