2014-02-02 iOSで乱数を使う Cのrand()が使える.srand()が少し独特. srand([[NSDatedate] timeIntervalSinceReferenceDate]); int val = rand();