Optimal scheduling replacement policies for a system with multiple random works