/* initialize state to random bits */
static unsigned long state[16];

/* init should also reset this to 0 */

static unsigned int index = 0;

/* return 32 bit random number */

unsigned long WELLRNG512(void)

{

unsigned long a, b, c, d;

a = state[index];

c = state[(index + 13) & 15];

b = a^c ^ (a << 16) ^ (c << 15);

c = state[(index + 9) & 15];

c ^= (c >> 11);

a = state[index] = b^c;

d = a ^ ((a << 5) & 0xDA442D24UL);

index = (index + 15) & 15;

a = state[index];

state[index] = a^b^d ^ (a << 2) ^ (b << 18) ^ (c << 28);

return state[index];


이런 함수가 있는데 난 이걸 파이썬에서 '그대로' 사용하고 싶거든?

근데 시발 저 함수 부분 위에 있는 static 저넘들 때문에 인터넷에 있는 dll 예시들과 달라서

그것도 아닌거 같고

ㅁㄴㅇㄻㄴㅇㄹ 


좀 도와주실 분 ㅠㅠ