Pregunta de entrevista de Apple

Random number generations, assertions, constraints etc.