Added number of random games as parameter