new way to cal sum do not use for while .... div..
add random select M from N items