building manager: algorithm for retailer inventory sales updated and using random amount of machines