Minor optimization was added to the random data generator.