Apple interview question

Random number generations, assertions, constraints etc.