Having trouble keeping data consistent between randomly chosen usernames

I have a users schema where users are supposed to be picked from a random list of users a random number of times.

Schema consist of:

  • id
  • username
  • avatar
  • age
  • gender

I’m able to repeat usernames a random number of times, but am having trouble keeping its related data (age, gender, avatar link) consistent.

Link: https://www.mockaroo.com/9d7e3f00

Found solution:

  1. Create base users schema
  2. Download data as csv
  3. Upload data
  4. Create new users schema
  5. Pick random users from base users data
  6. Make sure other fields in new schema correspond to base schema fields.