public static Profile[] generateProfiles(int count) {
    Random random = new Random();
    Profile[] profiles = new Profile[count];
    for (int i = 0; i < count; i++) {
      String company = COMPANIES[random.nextInt(COMPANIES.length - 1)];
      profiles[i] = new Profile(i, company);
    }
    return profiles;
  }
Create page views and spread out page views with the same member id across different partitions.
Member ids are spread out like this to make sure that partitionBy operators properly repartition the messages.
Member ids are assigned randomly from [0, 10).

Example
generatePartitionedPageViews(20, 4) will return:
0 -> page views with member ids [0, 5)
1 -> page views with member ids [6, 10)
2 -> page views with member ids [0, 5)
3 -> page views with member ids [6, 10)
samza-test/src/test/java/org/apache/samza/test/table/TestTableData.java