add mass constant code, add random number with fixed sum code