我这有一个代码 80-100随机比较简单
程序代码:
#include <stdlib.h>
#include <stdio.h>
#define MAX 10
#include<time.h>
void main()
{
int number[MAX] = {0};
int i;
srand((unsigned)time(NULL));
for(i = 0; i < MAX; i++)
{
number[i] = (rand()%20)+80;
printf("%d ", number[i]);
}
printf("\n");
}