The Ancient Near East and Islam: the case of lot-casting