Add program to random-generate hex values

This commit is contained in:
Gabriel Tofvesson 2019-04-06 23:16:13 +02:00
parent 650cb46417
commit ff924891f2

9
rand_gen.py Executable file
View File

@ -0,0 +1,9 @@
import random
def getRandomHex():
return hex(random.randint(0, 0x10000) | (1 << 30))[-4:].upper()
if __name__ == "__main__":
print("@0xE0")
for i in range(0, 32):
print(getRandomHex())