Testing random number generator