Palo Alto Networks interview question

implement a shuffle with rand for a list