cocos random number based on time