The lottery model of selling scratch-off tickets at local retailers has generated billions of dollars for state coffers for more than a half-century, but lottery officials believe the coronavirus pandemic has accelerated shifts toward online and cashless transactions.