expected value for uniform distribution - Search