mirror of
https://github.com/jjaldridge2009/Project_Xs.git
synced 2024-11-19 17:02:33 +01:00
This commit is contained in:
commit
71d11aea97
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user