tested the RandomNumberGenerator class