Attorney appointed to direct state lottery