In what way does this not ruin the surprise? It seems like you'll know exactly what you're getting, just not who it's coming from. The surprise is which gift, not which friend is getting the gift.
I'd have expected it to be more like... gauging the types of things they'd like, but keeping it super broad, to help hint you in the right direction.