Random Record Processes and State Dependent Thinning