'Returns a random index different from the current one.
If there are no songs in the playlist it returns -1.
If there is only one song in the playlist it returns 0.'

def _random_idx(self):

    if (len(self.playlist) < 2):
        return (len(self.playlist) - 1)
    new_index = self.random_obj.randint(0, (len(self.playlist) - 1))
    while (new_index == self.current_index):
        new_index = self.random_obj.randint(0, (len(self.playlist) - 1))
    return new_index
