rndseed = 0
def vc_srand(x):
global rndseed
rndseed = x
def vc_rand():
global rndseed
rndseed = (rndseed * 214013 + 2531011) & 0xffffffff
return (rndseed >> 16) & 0x7fff;
vc_srand(0x4b4)
for i in range(0, 25):
print(hex(vc_rand()))
misc method..
def charShift(s, shift):
ret=''
b = bytearray()
b.extend(s)
for index in range(len(b)):
ret+= chr( ((b[index] + shift) % 256 ))
return ret
gonna be honest, i hate python...
Comments: (1)
On 02.11.21 - 3:17am Dave wrote:
2021..I still hate python!
- fragile dependencies always a fight even with pip, dont trust auto downloads, multiple versions of python on my machine, shit might only work in one version.
Its like basic but worse, totally regression from vb6 only suitable for quick bullshit scripts that you dont distribute. The world is doomed the way people are (ab)using it.