When my users sign up, I automatically generate a string of 8 numbers as their username. This is using Bubble’s built-in “Calculate RandomString” function.
I’m pretty sure this does not actually ensure that each number is unique(?). So how do I ensure that the generated number is unique?
It will be unique in the vast majority of cases. But you can code round this by checking the generated string at signup time and pushing some innocuous message like “oops please try again” if it isn’t.