# Random String Generation

**URL:** <https://forum.kirupa.com/t/random-string-generation/73170>\
**Category:** flash\
**Created:** [December 13, 2004, 11:58pm UTC](https://forum.kirupa.com/t/random-string-generation/73170 "2004-12-13T23:58:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivcho](https://avatars.discourse-cdn.com/v4/letter/i/838e76/32.png) [@ivcho](https://forum.kirupa.com/u/ivcho)\
**Post date:** [December 13, 2004, 11:58pm UTC](https://forum.kirupa.com/t/random-string-generation/73170/1 "2004-12-13T23:58:44Z")

</div>

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
