import random
with open('case1.txt', 'w') as f:
    addr = 131072
    size = 393216

    f.write(f"addr:{addr}, size:{size}\n")

    for i in range(size):
        hex_addr = hex(random.randint(addr, addr + size*4))
        f.write(f"{hex_addr}\n")

every number i want to get  which is generated is 8 bits Hex and random range is (-10, 10), including fraction