Rename rand to Work Order
and fix a bug in commitment netting