Generate Random Numbers without two consecutive numbers


Hi, i already create a 5 random numbers (10000-99999), but i need to prevent a two consecutive numbers on the output. for example the output is ‘85889’ and there are two consecutive “8” here between 5 and 9. Is it possible to prevent a consecutive numbers?


You can do it using the Random.Next(), e.g. the attached xamlRandomInt.xaml (10.0 KB)


@Aron_Claudio you could also use this method:
Consecutive.xaml (8.2 KB)
Cheers :slight_smile:


hi @nwhitmor , i think your solution works, but can you explain me how it works. i tried to read the steps but i cant understand how it works, but it works :sweat_smile:



@nwhitmor no need to explain, i understand it now, thank you :slightly_smiling_face: