A two-in-one gamma-ray spectrometer and random pulse generator based on FPGA. (1st October 2020)