import hashlib
def rand_int(seed,low,high):
    h=int(hashlib.sha256(seed.encode()).hexdigest(),16)
    return low + (h % (high-low+1))
def rand_choice(seed,lst):
    return lst[rand_int(seed,0,len(lst)-1)]
assert rand_int("a",1,10)==rand_int("a",1,10)
assert rand_choice("a",["x","y","z"]) in ["x","y","z"]
print("SELF-TEST PASS")