How to generate unique random numbers in to array data set?

I have a concept to generate random numbers in one time when I run the workflow.

Here are my concept

*** digit is mean** => How many length of digit you want (example 1245,3643,3566, …)
*** amount_of_data_set is mean** => How many data set you need (1245,3643,3566,6664,3567)

I think about simple code to deal with or invoke code but no idea for this.
By the way I think about .rand function to solve this problem but I stuck with duplicate number.

Here is an example of my function about random 3 digit number (I added .padleft function for
it because I need 3 git number even if random number is 90, 23, 1… etc,. these result will be put the zero in front of.

then the result will be keep in result_array that i can use for each to fetch data out …

Thank you

this will solve the problem @lovepong66
Sequence3.xaml (10.9 KB)

input
image

result
image

1 Like

Fantastic!!! It’s work
Thank you

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.