On Ordering Perishable Inventory when Both Demand and Lifetime are Random