11/12/30 00:08:06.52
もうJKISS32でいいんじゃないか。周期も2^121くらいあるみたいだし。
URLリンク(www.cs.ucl.ac.uk)
/* Implementation of a 32-bit KISS generator which uses no multiply instructions */
static unsigned int x=123456789,y=234567891,z=345678912,w=456789123,c=0;
unsigned int JKISS32()
{
int t;
y ^= (y<<5); y ^= (y>>7); y ^= (y<<22);
t = z+w+c; z = w; c = t < 0; w = t&2147483647;
x += 1411392427;
return x + y + w;
}