How to generate a random number from 1 to 9999?

Custom Code

I need to create random number from 1 to 9999 that is not repeated in my supabase table when creating a new product through a form.

Process: product name, price... save and assign a number from 1 to 9999 but this number is aleatory and not in the table.

What have you tried so far?

i try to search but no idea

Did you check FlutterFlow's Documentation for this topic?
No
2
5 replies