Rapid7 interview question

Testing random function