Add random ordering and get ID of pictures shown