class_docstr: This is a generator convert from an input element to the partition key, a string.
class_docstr_tok: ["This","is","a","generator","convert","from","an","input","element","to","the","partition","key",",","a","string","."]
docstr: A PartitionKeyGenerator that maps an arbitrary input element to a random partition ID.
docstr_tok: ["A","PartitionKeyGenerator","that","maps","an","arbitrary","input","element","to","a","random","partition","ID","."]
code: def random() -> "PartitionKeyGenerator":
      """
      A PartitionKeyGenerator that maps an arbitrary input element to a random partition ID.
      """
      return PartitionKeyGenerator(
          get_gateway().jvm.org.apache.flink.connector.kinesis.table.RandomKinesisPartitionKeyGenerator()
      )
  
imports: from typing import Dict, Union, List
  from pyflink.common import SerializationSchema, DeserializationSchema, AssignerWithPeriodicWatermarksWrapper
  from pyflink.datastream.functions import SourceFunction
  from pyflink.datastream.connectors import Sink
  from pyflink.java_gateway import get_gateway
label_desc: Use image node_id 3 for calling the PartitionKeyGenerator obj's underlying member method code with example usage: obj.random() and returns: PartitionKeyGenerator