I would like to simulate a simple random cloud of letters using a custom tabular environment, like this:
\documentclass{article}
\usepackage{lcg}
\begin{document}
\reinitrand[first=12,last=20,counter=n]
\begin{tabular}[t]{*3{>{\rand\fontsize{\then}{\then}\selectfont}c}}
X & X & X \\
X & X & X \\
X & X & X \\
\end{tabular}
\end{document}
In addition, I also want to relocate "cells" in a similar way, but it is not possible because the syntax of the tabular environment supports declarations but not commands like \put(,){}
In other words, I would like to replace the \put command by any declaration inside the tabular
preamble, in order to avoid this redundant syntax:
\newcount\x
\newcount\y
\newcommand{\rndpos}[1]{
\rand\x\then
\rand\y\then
\put(\x,\y){#1}
}
\reinitrand[first=0,last=4,counter=n]
\begin{tabular}[t]{*3{>{\rand\fontsize{\numexpr 3*\then+10}{\then}\selectfont}c}}
\rndpos{X} & \rndpos{X} & \rndpos{X} \\
\rndpos{X} & \rndpos{X} & \rndpos{X} \\
\rndpos{X} & \rndpos{X} & \rndpos{X} \\
\end{tabular}