Python Integration

Is it possible to use Jython or the CLI to generate a set of random bits for a particular message/signal in a sequence diagram?