Two production facilities create devices, each device is tested at the same location. The devices arrive at random times and are dealt with in order of their arrival. The testing facility then sorts them into collections of three types: Grade A, (top 10%), Grade B(next 60%), Grade C(lowest 30%). Use a uniform distribution to determine the quality of any particular device. Each of these are then sorted into sales bundles (lists), Grade A under their own label, Grade B are sold under a different, label and the last grade are sold as a discount brand. Create a simulation of this process.