Domanda di colloquio di National Instruments

How will you design an algorithm to implement the shuffle concept in ipod?