# \[SOLVED\] Assign random # to a thing

**URL:** <https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479>\
**Category:** Uncategorized\
**Created:** [February 6, 2016, 1:51am UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479 "2016-02-06T01:51:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![denverdave11](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/denverdave11/32/38770_2.png) [@denverdave11](https://forum.bubble.io/u/denverdave11)\
**Post date:** [February 6, 2016, 1:51am UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/1 "2016-02-06T01:51:04Z")

</div>

Im trying to think of a way to do this. do i need to upload a list of numbers myself and then use Number= Number list:random item? or is there a way to populate this in bubble? also how would i go about making sure that a number doesnt get used twice? thanks!

---

<div class="post-metadata">

**Author:** ![georgeciobanu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgeciobanu/32/315_2.png) [@georgeciobanu](https://forum.bubble.io/u/georgeciobanu)\
**Post date:** [February 6, 2016, 2:02am UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/2 "2016-02-06T02:02:40Z")

</div>

The simplest way would be to create the list in Excel and upload it as CSV to a data type.  
You could also use BlockSpring - they have several random number/string generators, and it is really easy to integrate with those. A random string/id generated this way would be almost certain to be unique each time.

---

<div class="post-metadata">

**Author:** ![denverdave11](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/denverdave11/32/38770_2.png) [@denverdave11](https://forum.bubble.io/u/denverdave11)\
**Post date:** [February 6, 2016, 2:37am UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/3 "2016-02-06T02:37:18Z")

</div>

Yes! A random generator from blockspring works perfectly! thank you so much!!

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scott/32/565_2.png) [@Scott](https://forum.bubble.io/u/Scott)\
**Post date:** [February 6, 2016, 4:54am UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/4 "2016-02-06T04:54:04Z")

</div>

Reminded me of something I made for kicks. I think I used BlockSpring to generate the numbers. I just wanted to note that you can get the same sequence of random numbers when called twice on the same page. [http://lotterytraining.scottrefug.io/](http://lotterytraining.scottrefug.io/)

---

<div class="post-metadata">

**Author:** ![denverdave11](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/denverdave11/32/38770_2.png) [@denverdave11](https://forum.bubble.io/u/denverdave11)\
**Post date:** [February 6, 2016, 6:57am UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/5 "2016-02-06T06:57:07Z")

</div>

how long do you think it will take me to get my numbers to match? haha  
cool app man! I ended up using a 26 character alpha numeric string so i think the chances of a match are pretty low!

---

<div class="post-metadata">

**Author:** ![georgeciobanu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgeciobanu/32/315_2.png) [@georgeciobanu](https://forum.bubble.io/u/georgeciobanu)\
**Post date:** [February 6, 2016, 7:35am UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/6 "2016-02-06T07:35:27Z")

</div>

Your chances of hitting the same string are 1 in 5.9e40 (37^26).

Pretty good, I’d say. For reference, the Earth is made of 1.3e50 atoms.

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [February 6, 2016, 8:09am UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/7 "2016-02-06T08:09:53Z")

</div>

If every atom in the universe was a monkey with a typewriter, typing since the big bang, there is still only a 1 in a trillion chance one of them would have typed this.

Is this a fairly simple Blockspring call ? I would like to add it to my Bubble Patterns project.

---

<div class="post-metadata">

**Author:** ![denverdave11](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/denverdave11/32/38770_2.png) [@denverdave11](https://forum.bubble.io/u/denverdave11)\
**Post date:** [February 6, 2016, 8:13am UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/8 "2016-02-06T08:13:08Z")

</div>

yes i was surprised how simple it was. [https://open.blockspring.com/bs/random-alphanumeric-string](https://open.blockspring.com/bs/random-alphanumeric-string)

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scott/32/565_2.png) [@Scott](https://forum.bubble.io/u/Scott)\
**Post date:** [February 6, 2016, 8:48am UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/9 "2016-02-06T08:48:18Z")

</div>

Rechecked my work, I didn’t use BlockSpring, but Bubble’s builtin random item on a list. Irrelevant to this discussion, but to get a random selection on a list, I had to perform it twice on a particular list; otherwise, the 2nd list ends up looking like the 1st one. I assume that they had the same seed (if any).

---

<div class="post-metadata">

**Author:** ![georgeciobanu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgeciobanu/32/315_2.png) [@georgeciobanu](https://forum.bubble.io/u/georgeciobanu)\
**Post date:** [February 6, 2016, 3:24pm UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/10 "2016-02-06T15:24:38Z")

</div>

Scott, we’ll gladly look into it if you think it’s a bug - it should work properly the first time.  
If you think it’s a bug, fill out the form [https://bubble.io/bug\_report](https://bubble.io/bug_report) and we’ll look at it.

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scott/32/565_2.png) [@Scott](https://forum.bubble.io/u/Scott)\
**Post date:** [February 6, 2016, 4:11pm UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/11 "2016-02-06T16:11:00Z")

</div>

Actually, it was showing a randomly generated list the firs time. The issue was that since I’m generating two lists on the same page at the same time, the lists ended up being exactly the same. All I did was randomly sort the 2nd list a second time so it was different from the 1st list.

---

<div class="post-metadata">

**Author:** ![csfalcao](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/csfalcao/32/557_2.png) [@csfalcao](https://forum.bubble.io/u/csfalcao)\
**Post date:** [February 6, 2016, 4:22pm UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/12 "2016-02-06T16:22:58Z")

</div>

> [http://lotterytraining.scottrefug.io/1](http://lotterytraining.scottrefug.io/1)

Nice app! Have you thought in monetize it (ex. adwords)?

---

<div class="post-metadata">

**Author:** ![dustincasters](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@dustincasters](https://forum.bubble.io/u/dustincasters)\
**Post date:** [March 3, 2016, 9:53am UTC](https://forum.bubble.io/t/solved-assign-random-to-a-thing/1479/13 "2016-03-03T09:53:45Z")

</div>

Wonderful and great for reading. The [essay writing service reviews](https://reviews.clazwork.com) is participating in writing the papers.
