vc rand in pythonAuthor: Dave Date: 04.24.17 - 11:17am 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 Comments: (1)On 02.11.21 - 3:17am Dave wrote:
|
About Me More Blogs Main Site
|
|||||||||||||||||||||||