A well programmed random number generator is going to be better than kind of "random drawing". The problem was the lack of oversight in having the code be submitted. Any code changes that would hurt the reputation of an organization this badly should require multiple sign offs by code reviewers.
Then add random from hardware truly random generator to random number from physical lottery and use the result. It's going to be very difficult to rig both systems (handled by different teams) to work together.