Index: lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/action/LearningAction.java =================================================================== diff -u -re2f4b14e2d8f0ef1feef10abdc21f3d446fca2a5 -r357137c5d97f2317d166b2c8803d057c619bd3e1 --- lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/action/LearningAction.java (.../LearningAction.java) (revision e2f4b14e2d8f0ef1feef10abdc21f3d446fca2a5) +++ lams_tool_scratchie/src/java/org/lamsfoundation/lams/tool/scratchie/web/action/LearningAction.java (.../LearningAction.java) (revision 357137c5d97f2317d166b2c8803d057c619bd3e1) @@ -31,6 +31,7 @@ import java.util.HashSet; import java.util.Iterator; import java.util.List; +import java.util.Random; import java.util.Set; import java.util.TimeZone; @@ -254,7 +255,9 @@ if (scratchie.isShuffleItems()) { //items is a Set at this moment ArrayList shuffledItems = new ArrayList(items); - Collections.shuffle(shuffledItems); + //use random with a seed so people from the same group get the "same shuffle" + Random randomGenerator = new Random(toolSessionId); + Collections.shuffle(shuffledItems, randomGenerator); items = shuffledItems; }