List.Shuffle is only for integers?

Hello,

How can sort double values too. it seems to be List.Shuffle is just for integers?
each # is creating a list?

KR

Andreas

Hello,
Try
List.Shuffle(n);

Cordially
Christian.stan

Have a look at what the output of 0..n; is when you feed in 0…1…#11.

Because you haven’t specified the step value it’s using the default value of 1.

So the first range in the lists of ranges is actuall 0..0..1, which is like saying “starting with zero add one until you would have to pass zero”. So the range is zero. Similarly nearly every other item in the list says “start at 0 and add 1 until you would have to pass 0.X, which is going to occur before you append any numbers to the range, so you just get 0 in the sub list.

If you change the statement to List.Shuffle(0..n..n[1]); you might get what you are after.

1 Like