That is a good idea -— if a lowly cash register can spit out receipts all day, surely a high tech voting machine could do it as well. Like you said, no names, just a code number. I’m nearly 100% sure there are folks on this list that could make that happen.
Some of us have spent decades trying to think of ways to prevent vote fraud, but it is not very easy when there are too many corrupt people invovled in the process. As any accounting auditor can tell you, cash register receipts can be usedd to commit massive financial frauds which are sometimes difficult to detect, especially when the leasership of the organization is a co-conspirator in the fraud. It’s much worse with voting due to the secret ballot and compromised voter registration procedures.
While it is not immune to corruption, one of the best ways to severely restrict the opportunity for fraud is to return to limiting voter precincts to no more than the number of voters who can know, recognize, and observe their vote as if they are in a townhall meeting. At every step of the way the vote tallies are then escorted by auditable paper trails to successively higher authorities, so any attempt can be immediately detected and immediately stopped on the spot. Election officials caught red-handed wuld be subject to trial and punishment under laws mandating permanent loss of the right to vote or hold any public office of trust, imprisonment for not less than one or more decadees, or punishment including capital punishment for the leaders orchestrating large scale vote fraud.
Furthermore, none of the above will do one whit of good so long as the public cannot convene its own grand jury without the approval of the public prosecutor or district attorney. Only then can the corrupt judiciary and corrupt legislators be held accountable for corruption in their offices.