file lottery first version, with random mocking