Random copolymers made of both (PIM-polyimide) and (6FDA-durene-PI) were prepared for the first time by a facile one-step polycondensation reaction. By combining the highly porous and contorted structure of PIM (polymers with intrinsic microporosity) and high thermomechanical properties of PI (polyimide), the membranes obtained from these random copolymers [(PIM-PI)-(6FDA-durene-PI)] showed high CO2 permeability (>1047 Barrer) with moderate CO2/N2 (> 16.5) and CO2/CH4 (> 18) selectivity, together with excellent thermal and mechanical properties. The membranes prepared from three different compositions of two comonomers (1:4, 1:6 and 1:10 of x:y), all showed similar morphological and physical properties, and gas separating performance, indicating ease of synthesis and practicability for production in large scale. The gas separation performance of these membranes at various pressure ranges (100–1500 torr) was also investigated.