伪随机数生成器

emm,应该没有什么好说的。

const int maxn=1000;
const int a=19260817, c=1, m=1<<31;
int x=233;
int random(){ return x=(1LL*a*x+c)%m; }

相关文章: