根据KISS原文它的伪随机数产生器的Period about 2^123,周期很长,并且来自于多个产生器的共同作用之下而得,
原文的这这句话很有意思,(车轱辘压我脸上了)一个人不好的时候,试一试两个人,三个人。
python
Q = [1] * 4194304
carry = 0
cng = 123456789
xs = 362436069
j = 4194303
def KISS_II():
global j,carry,cng,xs
j = (j + 1) & 4194303
x = Q[j]
t = (x << 28) + carry
carry = (x >> 4) - (t < x)
Q[j] = t - x
cng = 69069 * cng + 13579
xs = (xs << 13) ^ (xs >> 17) ^ (xs << 5)
KISS = t + cng + xs
return KISS