RandomNumberGenerator to be able to receive null values by GUI