@Override
    public Partition getPartition0(String topic, List<Partition> partitions, Message message)
            throws MetaClientException {
        return partitions.get(this.rand.nextInt(partitions.size()));
    }
Random partition selector

@author dennis<killme2008@gmail.com>
metamorphosis-client/src/main/java/com/taobao/metamorphosis/client/producer/RandomPartitionSelector.java