Vb.net Random returns the same value when started with [run file], but operates fine when started with [Debug file]

Can someone please explain why Random operates differently depending on how the workflow is started in Studio?
Random returns the same value when started with [run file], but operates fine when started with [Debug file]

random.debugFile

Sorry, the above screenshot are wrong. Here is the results that I get:

I don’t know why it is different between 2 executes, but i can fix the problem. You can use index of For each to change seed of random
Set index of For each to variable(idx)
and change log message to New Random(idx).Next(1,10)

1 Like