Characteristics of runaway electrons in a tokamak