//根据时间来设定随机种子,真正的随机
cc_timeval psv;
CCTime::gettimeofdayCocos2d( &psv, NULL );
unsigned int tsrans = psv.tv_sec * 1000 + psv.tv_usec / 1000;
srand(tsrans);
//取随机数
int randomNUm = rand() % 9;//[0,9)
//根据时间来设定随机种子,真正的随机
cc_timeval psv;
CCTime::gettimeofdayCocos2d( &psv, NULL );
unsigned int tsrans = psv.tv_sec * 1000 + psv.tv_usec / 1000;
srand(tsrans);
//取随机数
int randomNUm = rand() % 9;//[0,9)