I would like to produce random texts in which some specific items would be sorted and printed in a random order, varying at each compilation. The intended purpose is to remove any hidden bias in the way the list is constructed. I have looked for a ready to use package or solution, but did not find any.
More specifically, I am working on the basis of something like this.
\documentclass[12pt]{article}
\usepackage[a4paper]{geometry}
\newcommand{\tobesorted}{}
\newenvironment{sortingitems}{}{}
\begin{document}
In my farm there are:
\begin{sortingitems}
\tobesorted pigs,
\tobesorted cows,
\tobesorted rabbits,
\tobesorted gnus,
\end{sortingitems}
and they all live in perfect harmony.
\end{document}
which would print the list of animals in a random order that would vary at each compilation. In my intended application, I would have several a few hundreds short items to be sorted. For the moment, I do not care much about punctuation at the end of the last item (but I am also interested).