Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- seed = 1589054912
- v = [seed]*4
- def rng2():
- v[0] = (v[0]+(1<<31) +(7<<15) +(63<<8))&4294967295
- v[1] = ((v[2]+v[3])+(v[0]^v[1]))&4294967295
- v[2] = v[1]|v[v[3]&3]
- v[3] = ((v[0]+v[1]+v[2])-v[3])&4294967295
- return v[3]
- def schedule(people):
- ary = list(range(0,people))
- while 0 < len(ary):
- print ary.pop(rng2()%len(ary))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement