Add a random data generator for sorting tests.