mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
pick(items) is items.get(nextInt(items.size())) and throws on an empty list. shuffle(items) is Fisher-Yates from the last index down, swapping i with nextInt(i + 1). RandomAccess lists swap through List.set; other lists are shuffled in an array copy and written back through their ListIterator, with the same result. Both are pinned to the Python reference, including draw counts.