Apple Interview Question

A function that generates and returns a randomized array comprising all integers from 1 to 100, with each integer appearing exactly once.