comments added to random function