📄 rand_.c.other
字号:
/*Uniform random number generator. Code courtesy of Bob Morris.Linear congruential generator, suitable for 32 bit machines;multiplication is mod 2**31*/static long randx = 1;srand_(x) /* subroutine to set seed */long *x;{randx = *x;}double rand_(){double ldexp();return(ldexp((double)(((randx = randx*1103515245 + 12345)>>7) & 077777777), -24));}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -