how to solve uniform distribution - Search