n = 24 (slider from 1 to 50, step 1)
L = Sequence(n)
L1 = Sequence(Random[0, 1000000000], i, 1, n)
L2 = Sort(L1)
L3 = Sequence(IndexOf[Element[L2, i], L1], i, 1, n)
Text1 = LaTeX(L, true, true)
Text2 = LaTeX(L3, true, true)