refactor function: addRandomProductToCart CheckOutScenario.java