隨機取值

#include<stdlib.h>

#include<time.h>

srand((unsigned) time(NULL));

rand() from 0 ~ 32766

RAND_MAX=32767