This commit is contained in:
Lincoln-LM 2022-01-09 14:09:40 -07:00
commit 71d11aea97

View File

@ -27,6 +27,8 @@ class Xorshift(object):
t = s2 >> 19 ^ s2 ^ s3
t ^= t >> 8
t ^= t >> 16
t ^= t << 11 & 0xFFFFFFFF
t ^= t << 22 & 0xFFFFFFFF
@ -37,9 +39,6 @@ class Xorshift(object):
return self.w
def range(self,mi,ma):
return self.next() % (ma-mi) + min
def advance(self,length:int):
self.getNextRandSequence(length)