PennController for IBEX › Forums › Support › Randomization by feature and by item › Reply To: Randomization by feature and by item
November 16, 2022 at 4:06 am
#9712

Participant
Hi,
I think the problem lies in the prefix specified in startsWith
. Since all features “Feature 60” to “Feature 69” start with “Feature 6” they’re mixed up. Adding “-” to the common prefix after the number should fix this.
Change the line 40 as follows **and delete line 41** and it should work:
features = [...new Array(119)].map((v,n)=>randomize(startsWith("Feature "+Number(n+1)+"-")))
Best,
Markus