How to generate 6 unique random number?

Good Day.

I have this workflow where I generate 6 random numbers. However, I aim to avoid repetition of numbers like this:

Is there any code or activity that can be used to make each number unique? Thank you.

Best regards,
Robert Monsalud

Hi @Robert_Russell_Monsalud

Va1 = integer

Val1 =new Random().Next(1,100)
This expression generates a random number between 1 to 100.

or

Right(Now.Millisecond.ToString,2)

Have a look on the video

Regards
Gokul

1 Like

Will it avoid repetition of numbers?

I tried to execute it but there is repetition of numbers.

HI,

Hope the following sample helps you.

Sequence.xaml (8.7 KB)

Regards,

2 Likes

Thank you so much, Sir. This will be very helpful.

Best regards,
Robert Monsalud

1 Like

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