Due to limited script space, I used ChantGPT to condense the corresponding code into a single line and replaced it.
Array.from({length: 3}, () => (index => (rewardPicks.push(cardPoolIDs[index]), cardPoolIDs.splice(index, 1)[0]))(Math.randomInt(cardPoolIDs.length))); | ||