MKonrad

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Randomization by feature and by item #9712
    MKonrad
    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

    • This reply was modified 1 year, 6 months ago by MKonrad.
    • This reply was modified 1 year, 6 months ago by MKonrad.
Viewing 1 post (of 1 total)