MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / xorshift

Function xorshift

hashes/chaos_machine.py:51–55  ·  view source on GitHub ↗
(X, Y)

Source from the content-addressed store, hash-verified

49
50 # PRNG (Xorshift by George Marsaglia)
51 def xorshift(X, Y):
52 X ^= Y >> 13
53 Y ^= X << 17
54 X ^= Y >> 5
55 return X
56
57 # Choosing Dynamical Systems (Increment)
58 key = machine_time % m

Callers 1

pullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected