伪随机数生成器

伪随机数生成器

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; }
posted @ 2018-05-25 19:26  pechpo  阅读(320)  评论(1编辑  收藏  举报