简介
RT
解决方案
最终linux上的random函数,发现了这么一句英文
/* These are the functions that actually do things. The random',
srandom', initstate' and
setstate' functions are those from BSD Unices. The rand' and
srand' functions are required by the ANSI standard.We provide both interfaces to the same random number generator. `/
也就是说 random 和 srandom 是 BSD的函数(可能随机数涉及系统的内核构建)
rand 和 srand 是 ANSI 标准,(应该是在windows函数上的)
/ Return a random long integer between 0 and RAND_MAX inclusive. */
extern long int random (void) __THROW;
如果遇到问题可以联系我
---------------------------我的天空里没有太阳,总是黑夜,但并不暗,因为有东西代替了太阳。虽然没有太阳那么明亮,但对我来说已经足够。凭借着这份光,我便能把黑夜当成白天。我从来就没有太阳,所以不怕失去。
--------《白夜行》