How to generate a random array in c

[ad_1]

How to generate a random array in c
#include 
#include 
#include 

main(){
    int vet[1000], fre[50];
    int i;

    srand(time(NULL));

    for(i=0;i<1000;i++){
        vet[i]=(rand(
    }

    for(i=0;i<1000;i++){
        printf(
    }

    for(i=0;i<1000;i++){
        fre[vet[i]]=fre[vet[i]]+1;
    }

    for(i=0;i<51;i++){
        printf("The number
    }
}

[ad_2]

Please follow and like us:
Content Protection by DMCA.com