Try iterating through shuffled.valueList after you’ve created it.
I don’t know your situation of course, but I wouldn’t think you would want to store a ShuffledList in a local, unless you are just setting something up. You’re more likely to store something like that in a property of an object.
well, that’s progress. I get the objects back when I iterate using shuffled.valueList. except it’s not shuffled. even after a reshuffle() it’s the same as the base unshuffled list.
I’ve also tried moving the shuffled list out of the local object using:
+ shuffled: ShuffledList
;
I get the same thing, the objects are there but they’re not shuffled.
I think you’re meant to access successive items from a ShuffledList by using its getNextValue() method rather than by iterating through it with foreach.
I suspect that as you keep going you will start to pick up on the TADS mentality and things like this will start to come more naturally! Note also that ShuffledEventList is far more commonly used than ShuffledList although ShuffledList certainly has its place…