Random Source random_source_x from gnuradio import gr import numpy gr.vector_source_$(type.fcn)(numpy.random.randint($min, $max, $num_samps), $repeat) Output Type type enum Minimum min 0 int Maximum max 2 int Num Samples num_samps 1000 int Repeat repeat True enum out $type Generate num samples of random numbers of [min, max). Repeat samples if specified. Ex: With min=0 and max=2, the sequence 01110101... will be generated.