The use of aleatory mechanisms in civil law