in monitoring/stv_tool.py [0:0]
def generate_random(count):
random.seed(0) ### choose a seed based on input? for now: repeatable.
while True:
# Generate COUNT values in [0.0, 1.0)
# NOTE: use a list (not a set or dict) for repeatable ordering.
values = [random.random() for x in range(count)]
# Use a set() to check for dups. If no dups, then return the values.
if len(set(values)) == count:
return values