My objective is to create a table or some form of environment as shown in the figure below.
The numbers should be randomly generated every time you compile and have the font shown below.
Is this possible?
fontsrandom numberstables
My objective is to create a table or some form of environment as shown in the figure below.
The numbers should be randomly generated every time you compile and have the font shown below.
Is this possible?
Best Answer
You could use TikZ nodes and pgf made random numbers, for example:
The output, using
ocr-a
numbers, as Mico advised in his comment below:To get different numbers for each compilation, you could initialize the random number generator yourself by
By default, it's the value of
\time
*\year
. So it would't change during each compilation, so I used thedatetime
package to use also minutes and seconds for calculating the seed. So the random values should change each second. You could also use values or counters in your.aux
file instead.You can get the
ocr-a
font from CTAN: http://ctan.org/pkg/ocr-a. If you don't manage to install it, a quick workaround: you could load themf
andtfm
files (for example from here), put them into your document directory and run (withfontenc
andocr
as above) - it worked for me.