title: How to use snapshot_id spotipy
body: <p>I'm trying to randomly reorder a playlist using the spotipy module.
  My code:</p>
  <pre><code>def randomizePlaylist(sp):
      #get list of all the data about current users playlists
      playlists = sp.current_user_playlists()
      #get the names of all the playlists
      names = [item['name'] for item in playlists['items']]
      #print out all the names as choices
      for i in range(len(names)):
          print(f&quot;{i+1}. {names[i]}&quot;)
  
      #choose the playlist to shuffle
      playlistchoice = int(input(&quot;Which of the above playlists would you like to shuffle?\n&quot;))
  
      playlistchoice-=1
      playlistids = [item['uri'] for item in playlists['items']]
      playlistchoiceid = playlistids[playlistchoice]
      playlistitems = sp.playlist_items(playlistchoiceid)
      lengthplaylist = playlistitems['total']
  </code></pre>
  <p>I want to, using a loop and the random module, change the position of a random song to a random location in the playlist. I used the function &quot;playlist_reorder_items&quot; but that just returns a snapshot id every time I use it. How can I do the random sort?</p>