iOSで乱数を使う

Cのrand()が使える.srand()が少し独特.

srand([[NSDatedate] timeIntervalSinceReferenceDate]);
int val = rand();