Forum Documentation Showcase Pricing Learn more

[SOLVED] Assign random # to a thing


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!

Blockspring: Randomly Generated Number

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.


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


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.


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!

Using a code as login

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.


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.


yes i was surprised how simple it was.


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).


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 and we’ll look at it.


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.


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


Wonderful and great for reading. The essay writing service reviews is participating in writing the papers.


This post was flagged by the community and is temporarily hidden.