Refresh input text box with new string every 10 seconds


I've searched on here and other places (about 15 other forums...yes I kept count) as well and I can't seem to find any previous posts that match what is below. Either that or I didn't search hard enough....

What I'm trying to do: Everytime someone presses the submit button I want the to have a new random string (new id) so that way each time someone presses submit the id is not a replica of the previous as I'm using such ID (not the automated ID by database) to identify these comments.

What I currently have ">

That broken down is basically this