How are pulse trains generated in a radio transmitter?
Arbitrary Waveform Generators are a special type of test equipment that can generate, as the name implies, arbitrary waveforms as output signals that can be fed into transmitters or other circuits. They vary significantly in sophistication.