Using rand(), I'm trying to create an array which generates 32 random numbers each time I run the program. However my program below gives me the same 32 random bits each time. Is there anyway I can get it to generate different 32 bits each time I run the program?
    for(a=0;a<32;a++)
    {
        ran[a]= (rand()%2);
    }
 
    