Add program to random-generate hex values
This commit is contained in:
parent
650cb46417
commit
ff924891f2
9
rand_gen.py
Executable file
9
rand_gen.py
Executable 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())
|
Loading…
x
Reference in New Issue
Block a user