//乱数シード + (void)srand { srand(time(0)); } //乱数の取得 + (int)rand:(int)num { return abs(arc4random())%num; } //現在時刻の取得 + (double)currentTimeMillis { return (double)[[NSDate date] timeIntervalSince1970]; } //年月日の取得(cal.year/month/day/hour/minute) + (NSDateComponents*)calendar { NSDate *date=[[[NSDate alloc] init] autorelease]; NSCalendar *gregorian=[[[NSCalendar alloc] initWithCalendarIdentifier:NSGreg