#include<time.h>
srand((unsigned)time(NULL));//修改种子
a = (rand() % (NP + 1));//rand()随机范围[0,NP]
(rand() / (RAND_MAX+1.0));//rand(0,1)
#include<time.h>
srand((unsigned)time(NULL));//修改种子
a = (rand() % (NP + 1));//rand()随机范围[0,NP]
(rand() / (RAND_MAX+1.0));//rand(0,1)