Apple Interview Question

Random number generations, assertions, constraints etc.