some tests with random number generator