// the shuffled array is very unlikely to equal to the original unshuffled form assertNotEquals(my_arr, range_100) // sort the shuffled array to assert the preservation of the contained items assertEquals(my_arr.toSorted((a, b) => (a - b)), range_100)
shuffle a 1D array via mutation. the ordering of elements will be randomized by the end.