Amazon Interview Question

How would you select a random element from an array