In the original post, the range was not respected, but that seems to have been noticed already.
To generate random numbers in a range you could write a function random(min, max).
It would be best to write functions for all single tasks.
The main program would then be much easier to read.
int bubble[SIZE];
srand((unsigned)time(NULL));
arrgen(bubble, SIZE);
outputarr(bubble, SIZE);
bubblesort(bubble, SIZE);
outputarr(bubble, SIZE);
outputhist(bubble, SIZE);