What voltage does the RCX give on its motor ports?

I am thinking of making a motor (among other things) for the RCX, seeing as it only comes with 2, but I don't know what voltage motor I need. Also, I dont like how the motor doesn't have a flat bottom. (Only one of the mistakes of the Lego company)