There are a ton of ways to do this, but the one I’ve found that’s consistent and transparent utilizes twitter’s json service. The upshot is this:

which gives back an array of “tweets” – the text property of each element is the one with the actual string of the tweet.

so if you wanted to grab a random tweet from the last 10, it might look like this:

if you wanted to linkify it, just add some RegExp…

and if you wanted the most recent tweet (instead of random), also linkified…

(not the change in the web service’s URI – for the most recent tweet, no need to get last 10 results… just grab the last result)