Random works, but will this be slow for a large database?