Create randomly generated url for content
<p>I'm making a mini-paste-website for myself, kind of like pastebin but much simpler. I need it to generate a random url (something like mysite.com/paste/ab8536dc2e, mysite.com?id=b91527a2ac, etc. format doesn't really matter) with the paste in it. How would I generate a url like that and have it lead to a page with something I submitted in it? I'm using PHP, I'd prefer to keep it as simple and plain as possible and not use anyting like MySQL, jQuery etc. unless needed.</p>