This page will initially return 10 random postcodes. This can be used for development purposes or for using a random sample. You can also adjust the number returned and ask for unformatted text to make it easier to copy and paste.
Random Postcodes List
Lists of Random Postcodes For Other UK Cities
Get in contact to suggest any other cities.