The LaTeX file below outputs the numbers 1,2...,20, in natural order
\documentclass[12pt]{article}
\usepackage{multido}
\begin{document}
\multido{\i=1+1}{20}{\i\ }
\end{document}
The output is
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
This is my question: Is there a simple way to output the same numbers, but randomly (and without repetitions, each of the numbers should appear once)? Of course each composition of the document should produce random outputs.
My problem is not exactly that one: I have 20 files named file1, file2, ..., file20, and I would like to input them randomly (each of the 20 files must be input at one moment of the process, and no file should be input twice). But answering the simpler question above would be perfect for me.

\input{temp.tex}
– jm.ferrard Mar 03 '15 at 05:21\end{document}