Changed lotto app to use qrand() rather than rand()