# How to create a random generated number?

**URL:** <https://forum.wixstudio.com/t/how-to-create-a-random-generated-number/33608>\
**Category:** Ask the community\
**Tags:** code\
**Created:** [November 22, 2017, 6:42am UTC](https://forum.wixstudio.com/t/how-to-create-a-random-generated-number/33608 "2017-11-22T06:42:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_geo](https://avatars.discourse-cdn.com/v4/letter/_/c0e974/32.png) [@\_geo](https://forum.wixstudio.com/u/_geo)\
**Post date:** [November 22, 2017, 6:42am UTC](https://forum.wixstudio.com/t/how-to-create-a-random-generated-number/33608/1 "2017-11-22T06:42:28Z")

</div>

I want to create a random generated number to my form, like a ID Code. cause I can’t edit the ID database already created, and it’s hard to pull out and sent to email automatically. Can someone please help me?

---

<div class="post-metadata">

**Author:** ![fordcreatv](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/fordcreatv/32/1852_2.png) [@fordcreatv](https://forum.wixstudio.com/u/fordcreatv)\
**Post date:** [March 24, 2018, 5:38pm UTC](https://forum.wixstudio.com/t/how-to-create-a-random-generated-number/33608/2 "2018-03-24T17:38:26Z")

</div>

I’m wanting to do the exact same thing now! Did you have any luck since you originally posted this?

---

<div class="post-metadata">

**Author:** ![code-queen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-queen/32/696_2.png) [@code-queen](https://forum.wixstudio.com/u/code-queen)\
**Post date:** [March 25, 2018, 8:01pm UTC](https://forum.wixstudio.com/t/how-to-create-a-random-generated-number/33608/3 "2018-03-25T20:01:08Z")

</div>

Hello Ashley … here is another thread that has the answer:

> **[(SOLVED!)I need a HELP of a Wix Expert! | Velo by Wix](https://community.wix.com/velo/forum/coding-with-velo/solved-i-need-a-help-of-a-wix-expert)**
>
> I'm trying to create a random number automatically for the 10 Digit ID Code that will save into my database collection along with information the customer put in the form
> 
> 
> And it will display on the database collection row along with the information...

This may also interest you:

[https://www.totallycodable.com/forum/codes-for-templates/unix-time-stamp-code-epoch](https://www.totallycodable.com/forum/codes-for-templates/unix-time-stamp-code-epoch)

---

<div class="post-metadata">

**Author:** ![fordcreatv](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/fordcreatv/32/1852_2.png) [@fordcreatv](https://forum.wixstudio.com/u/fordcreatv)\
**Post date:** [April 23, 2018, 12:58am UTC](https://forum.wixstudio.com/t/how-to-create-a-random-generated-number/33608/4 "2018-04-23T00:58:22Z")

</div>

Hi Nayeli,

My mind must have been in overdrive back in March (still is); just randomly cam across this thread and just saw your response to me tonight. Thank you! I’ve learned so much the past month. Back on March 25th, even if I had seen this, I don’t know how much sense it would have made to me. But now it totally does! Thank you!
