I'm afraid you've confused me. I don't understand what you want.
What do you mean by "random number"? What random number? Why do you have to divide it by 10,000?
Also, your bubble sort function is doing waaay too many things. All it should do is sort your array, nothing else. No file I/O, no random initializations, no printing, nothing -- just sorting. Make other functions for those things.
int intarray[] = { 7, 2, 3, 9, 5, 8, 1, 4, 6 };
double doublearray[ 500 ];
random_fill(doublearray); // you would need to write this function
Bubble(intarray);
Bubble(doublearray);
print(cout,intarray); // you would need to write this function also
print(cout,doublearray);
If I put in divide by 10000 it will do that for all of my other Bubbles and I only want it to divide when type is double. Do you know the if statement that I could use to tell it to divide by 10000 when type is a double?