Hi everyone,I am trying to make a C function that swaps one random bit (set to 1 if it is 0 and vice versa) of a int variable named "chr". This is the code i wrote so far
srand(buf); //casual seed
pr1=rand() % 16;