The TikZpingus package
Getting started
2.9 Randomness¶
Each selection (like the wings or the eyes) can receive a special command !random. If given, the penguin will receive a randomly picked component. Please note, that none (the component removing it) will never be picked. The first line in the example in Box “Random Penguin” sets the seed.
In a more general fashion, there is a /pingu/random from key for completely random penguins.
/pingu/random from = ⟨list⟩¶
You can pass any list of penguin keys and exactly one of them will be selected. You can nest /pingu/random from-calls. Please note, that the items are not separated by comma but in braces. The first line in the example sets the seed:
\pgfmathsetseed{\number\pdfrandomseed}
\begin{tikzpicture}
\pingu[random from={{eye patch left}{eye patch right}{halo,halo raise=4mm}},random from={{right eye color=pingu@blue}{random from={{bow tie}{gold medal}}}},random from={{eyes=!random}{wings=!random}},body type=legacy]
\end{tikzpicture}