1560s, "arrangement for an awarding of prizes by chance among those buying tickets," from Italian lotteria, from lotto "lot, portion, share," from a Germanic source. It is cognate with Old English hlot (see lot (n.)), and compare lotto. French loterie is from Middle Dutch loterje, from the same Germanic source. Formerly they were typically used to raise money for some state or charitable purpose.
Old English hlot "object used to determine someone's share" (anything from dice to straw, but often a chip of wood with a name inscribed on it), also "what falls to a person by lot," from Proto-Germanic *khlutom (source also of Old Norse hlutr "lot, share," Old Frisian hlot "lot," Old Saxon hlot, Middle Dutch, Dutch lot, Old High German hluz "share of land," German Los), from a strong verb (the source of Old English hleotan "to cast lots, obtain by lot; to foretell"). The whole group is of unknown origin.
The object was placed with others in a receptacle (such as a hat or helmet), which was shaken, the winner being the one whose name or mark was on the lot that fell out first. Hence the expression cast lots; to cast (one's) lot with another (1530s, originally biblical) is to agree to share winnings. In some cases the lots were drawn by hand, hence to draw lots. The word was adopted from Germanic into the Romanic languages (Spanish lote, and compare lottery, lotto).
Meaning "choice resulting from the casting of lots" first attested c. 1200. Meaning "share or portion of life" in any way, "that which is given by fate, God or destiny" is from c. 1300. Meaning "number of persons or things of the same kind" is from 1570s (compare Latin mala merx, of persons, literally "a bad lot"). Sense of "plot of land" is first recorded 1630s, American English (distribution of the most desirable properties in new settlements often was determined by casting lots), then especially "parcel of land set aside for a specified purpose" (the Hollywood sense is from 1928). The common U.S. city lot was a rectangle 25 feet wide (along the street) by 100 deep; it was so universal as to be sometimes a unit of measure.
Meaning "group, collection" is 1725, from the notion of auction lots. Lots in the generalized sense of "great many" is attested by 1812; lotsa, colloquial for "lots of," is from 1927; lotta for "lot of" is by 1906.
late 14c. as the name of a small French coin; 1550s as "white space in the center of a target," from the same source as blank (adj.). Meaning "empty space" (in a document, etc.) is from c. 1570. Meaning "losing lottery ticket" (1560s) is behind the figurative expression draw a blank "come up with nothing" (by 1822).
The court has itself a bad lottery's face,
Where ten draw a blank before one draws a place;
For a ticket in law who would give you thanks!
For that wheel contains scarce any but blanks.
[from "That the World is a Lottery" in "The Vocal Library," 1822]
The word has been "for decorum's sake, substituted for a word of execration" [OED] at least since 1854 (for compound words, blankety-blank), from the use of blank lines in printing to indicate where such words or the letters forming the bulk of them have been omitted. From 1896 as short for blank cartridge (itself from 1826).
late 14c., rafle, "game played with dice, a throw of the dice" (senses now obsolete), from Old French rafle "dice game," also "plundering," a word of uncertain origin. Perhaps from a Germanic source (compare Middle Dutch raffel "dice game," Old Frisian hreppa "to move," Old Norse hreppa "to reach, get," Swedish rafs "rubbish," Old High German raspon "to scrape together, snatch up in haste," German raffen "to snatch away, sweep off"), from Proto-Germanic *khrap- "to pluck out, snatch off." The notion would be "to sweep up (the stakes), to snatch (the winnings)." Diez connects the French word with the Germanic root, but OED is against this.
The meaning "method of sale by chance or lottery, form of lottery in which an article is assigned by the drawing of lots to one person among several who have paid for the chance" is recorded by 1766.
["written insurance agreement"], 1560s, "written contract to pay a certain sum on certain contingencies," from French police "contract, bill of lading" (late 14c.), from Italian polizza "written evidence of a transaction, note, bill, ticket, lottery ticket," from Old Italian poliza, which, according to OED, is from Medieval Latin apodissa "receipt for money," from Greek apodexis "proof, declaration," from apo- "off" + deiknynai "to show," cognate with Latin dicere "to say, speak" (from PIE root *deik- "to show," also "pronounce solemnly"). Also formerly a form of gambling, "the numbers game" (by 1830).
c. 1300, "sum, aggregate of a collection," from Anglo-French noumbre, Old French nombre and directly from Latin numerus "a number, quantity," from PIE root *nem- "assign, allot; take."
Meaning "written symbol or figure of arithmetic value" is from late 14c. Meaning "single (numbered) issue of a magazine" is from 1795. Colloquial sense of "a person or thing" is by 1894. Meaning "dialing combination to reach a particular telephone receiver" is from 1879; hence wrong number (1886). The modern meaning "musical selection" (1885) is from vaudeville theater programs, where acts were marked by a number. Earlier numbers meant "metrical sound or utterance, measured or harmonic expression" (late 15c.) and, from 1580s, "poetical measure, poetry, verse."
Number one "oneself" is from 1704 (mock-Italian form numero uno attested from 1973); the biblical Book of Numbers (c. 1400, Latin Numeri, Greek Arithmoi) is so called because it begins with a census of the Israelites. Childish slang number one and number two for "urination" and "defecation" attested from 1902. Number cruncher is 1966, of machines; 1971 of persons. To get or have (someone's) number "have someone figured out" is attested from 1853; to say one's number is up (1806) meaning "one's time has come" is a reference to the numbers on a lottery, draft, etc. The numbers "illegal lottery" is from 1897, American English.
1520s, "short note or document," from a shortened form of French etiquet "label, note," from Old French estiquette "a little note" (late 14c.), especially one affixed to a gate or wall as a public notice, literally "something stuck (up or on)," from estiquer "to affix, stick on, attach," from Frankish *stikkan, cognate with Old English stician "to pierce," from Proto-Germanic *stikken "to be stuck," stative form from PIE *steig- "to stick; pointed" (see stick (v.)).
Meaning "card or piece of paper that gives its holder a right or privilege" is first recorded 1670s, probably developing from the sense of "certificate, licence, permit." The political sense of "list of candidates put forward by a faction" has been used in American English since 1711. Meaning "official notification of offense" is from 1930. Big ticket item is from 1953. Slang the ticket "just the thing, what is expected" is recorded from 1838, perhaps with notion of a winning lottery ticket.