number of calls to random generator