69,373
社区成员
发帖
与我相关
我的任务
分享
static long holdrand = 1L;
void __cdecl srand (
unsigned int seed
)
{
holdrand = ( long )seed;
}
int __cdecl rand (
void
)
{
return( ( ( holdrand = holdrand * 214013L + 2531011L ) >> 16 ) & 0x7fff );
}