How to generate random number for server variable

I am having serious 'old person brain' today. Can't find anyway to bind a timestamp to a form field? It should be easy.....