I created a table that held a key.
From that key I wanted to construct a URL. Instead of storing the URL in the table, I created a view.
CREATE VIEW urls (url) as SELECT 'http://www.example.com/' || key || '.png' FROM records;
CREATE VIEW random_url as SELECT * FROM urls ORDER BY random() LIMIT 1;
select * from random_url;