Wrote an Android App to help practice this - has a bunch of different matching games similar to what you described. Settings for 4,5,6 string basses.
[url="https://play.google.com/store/apps/details?id=com.fretboard.game.android&hl=en"]https://play.google.com/store/apps/details?id=com.fretboard.game.android&hl=en[/url]
[url="http://www.amazon.com/Complete-Think-Fretboard-Learn/dp/B00TMTQWU2"]http://www.amazon.com/Complete-Think-Fretboard-Learn/dp/B00TMTQWU2[/url]