Added random flag to give a 20% chance of using the random parameter'