This happens in the iOS application.
After performing a search, if I select a song and the random mode is activated in the player, any of the other songs that appeared as result of the search are played instead of the selected one.
Example: In the screenshot below I selected the track One by Metallica but Spotify plays One by U2.
I tried it in iOS 11.1.1, in iPhone 6S and 5SE, and in both the error occurred.
Now Spotify was updated to version 8.4.26.793 and it seems that they already solved the error.
Hey @jmaq_cr, welcome to the Spotify Community!
To start, can you let us know what device, operating system, and version of Spotify you're using? Can you try with a different device and let us know if that makes a difference?
Also, can you try the steps here for us? They should help with this.
Keep us posted 🙂