whrandom replaced with random.