Shabbos 23:1-2
Shabbos 23:1
A person may borrow barrels of wine and pitchers of oil on Shabbos but he may not express his request using the terminology of a long-term (formal) loan, but rather that of a short-term (personal) loan. (This is out of concern that the lender may come to record the debt in his records.) The same is true of a woman who borrows loaves of bread. If the lender isn’t confident that the borrower will agree as to the value of the loan, the borrower can leave his cloak as collateral and the parties can firm up the details after Shabbos. Similarly, if the day before Passover falls on Shabbos (and a person doesn’t have an animal for his Passover offering), he may leave his cloak as collateral with the animal vendor, take an animal for use as a sacrifice, and hammer out the details after yom tov.
Shabbos 23:2
On Shabbos, a host may count orally the number of guests and the number of courses he plans to serve but he may not read them from a pre-written list (out of concern that he may edit the written list). Members of a household can cast lots to select who gets which portion but the portions must all be of comparable sizes; if there are large portions and small portions, it is prohibited as a form of gambling. The kohanim in the Temple could cast lots on yom tov about the sacrificial animals but not about the portions (from the previous day).