Random String Generation

Hey guys,

I need to create a function with ActionScript that will return a number that will be 13 characters in length and must be unique everytime its ran.

e.g. “1234567890123”

Any ideas? It seems pretty simple but I cant come up with any ideas… was wondering if anyone has had to do something similar before and can help

Thanks in advance