Mechanism of Runaway Electron Generation at Gas Pressures from a Few Atmospheres to Several Tens of Atmospheres