Cosmic rays and X-rays produce energetic electrons by ionization.
X-rays were produced when energetic electrons hit a solid object.