Fixed the counter of calls to RNG