Here is a solution that will give you the results you are looking for.

http://superuser.com/questions/20492...-a-given-total