lotto demo code