check in geometric random number generator