extends Node var origList = ["A","B","C","D","E","F","G","H","I","J"] func sample(list,amt): randomize() var shuffled = list.duplicate() shuffled.shuffle() var sampled = [] for i in range(amt): sampled.append( shuffled.pop_front() ) return sampled func _ready(): print("Original: " + str(origList)) print("Shuffled: " + str(sample(origList, origList.size())))