add rand() to ~calc