The "1860" was printed by the machine that issued the ticket, along with the date. Generally, unprinted ticket stock would also carry a "control number," as the stock itself had value. The stock was further monetized and received a "ticket number" once it was printed. Without controls on the blank stock, it could be stolen or misused as there could be no accounting of it before it was printed.
The only times a stock number wouldn't be employed would be the case of limited-distribution materials, as in a trial or unique stock where the distribution would be very limited to one or a few confidants.
Of course all these protocols were tossed when revenue accounting took a back seat under State ownership.