def seed(range=10, hash=None):
    if hash is None:
        hash = __grains__['id']

    random.seed(hash)
    return random.randrange(range)
Returns a random number within a range. Optional hash argument can
dataset/ETHPy150Open saltstack/salt/salt/modules/mod_random.py/seed