Added randomGenerator