microsoft rand()

int seed = 1;
int rand() {
    return ( (seed = seed *214013 + 2531011) >> 16 ) & 32767;
}

  

原文地址:https://www.cnblogs.com/lambdatea/p/2858292.html