Chinese Acad Sci, Inst Theoret Phys, Beijing 100080, Peoples R China
; Acad Sinica, Inst High Energy Phys, Beijing 100049, Peoples R China
; Chongqing Univ, Dept Phys, Chongqing 400044, Peoples R China
We write down a generator program for the hadronic production of the double-heavy baryons Xi(cc), Xi(bc), and Xi(bb) according to relevant publications. We name it as GENXICC and we test it by comparing its numerical results with those in references. It is written in a PYTHIA-compatible format and it can be easily implemented into PYTHIA. GENXICC is also written in modularization manner, with make, a GNU C compiler, one may apply the generator to various situations or experimental environments very conveniently.