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

Function xorshift

hashes/chaos_machine.py:46–50  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

44
45 # PRNG (Xorshift by George Marsaglia)
46 def xorshift(x, y):
47 x ^= y >> 13
48 y ^= x << 17
49 x ^= y >> 5
50 return x
51
52 # Choosing Dynamical Systems (Increment)
53 key = machine_time % m

Callers 1

pullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected