diff options
-rw-r--r-- | gr-analog/grc/analog_random_source_x.block.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gr-analog/grc/analog_random_source_x.block.yml b/gr-analog/grc/analog_random_source_x.block.yml index 62679decd0..20fb31932f 100644 --- a/gr-analog/grc/analog_random_source_x.block.yml +++ b/gr-analog/grc/analog_random_source_x.block.yml @@ -37,11 +37,15 @@ templates: from gnuradio import blocks import numpy make: blocks.vector_source_${type.fcn}(list(map(int, numpy.random.randint(${min}, ${max}, - ${num_samps})), ${repeat})) + ${num_samps}))), ${repeat}) documentation: |- 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. + + This block wraps Vector Source, i.e. it creates a vector source using a vector filled with values returned from calling np.random.randint(min, max, num_samps) once + If you would like a traditional random number generator, use Random Uniform Source instead + file_format: 1 |